dcsimg

Search:

Type: Posts; User: Halsafar

Page 1 of 13 1 2 3 4

Search: Search took 1.96 seconds.

  1. Eat up all the heap -- Still report segmentation fault?

    I have an application which works fine for small data sets. (PathFinding) as the sets get larger the memory consumptions goes wild.

    When I attempt larger data sets my problem halts with a...
  2. Re: C -- Reading from file into array of char*

    Yes but I found one. Realloc, if the ptr* you pass in is not NULL it will try to resize the memory location. Of course in the above example if the memory is not zero'd then a Segmentation Fault...
  3. C -- Reading from file into array of char*

    C only.

    First em I on the right track? I am just trying to read line by line and store each line into a char**.
    It works, but maybe I missed something MUCH simpler.



    char ***ppNames; //...
  4. Replies
    10
    Views
    698

    Re: Title this Music from "Rain" pepsi ad

    I aint new, I've been listening to techno for 11 years and have pounds over pounds of cd's.

    However it has been about 2 years since I found anything new/good.

    So go hard, point me in any...
  5. Replies
    10
    Views
    698

    Re: Title this Music from "Rain" pepsi ad

    Pepsi will always have money to spend. Unless we stop buying it. I won't, goes to good with rye.
  6. Replies
    10
    Views
    698

    Re: Title this Music from "Rain" pepsi ad

    Wow Cander, sorry, it looks we are getting two totally different pages when we click that link. How very odd. Maybe Pepsi likes to mix it up abit randomly given certain IP's LoL... Seriously tho,...
  7. Replies
    10
    Views
    698

    Re: Title this Music from "Rain" pepsi ad

    Lol there are only two ads shown which have pictures.
    Free Ride
    Rain

    Ignore the section labelled "Check out more pepsi ads below", instead look just above that to see "Free Ride" or "Rain".
    ...
  8. Replies
    10
    Views
    698

    Title this Music from "Rain" pepsi ad

    Go here:
    http://www.pepsi.com/ads_and_history/index.php

    Click the ad titles "rain".

    If anyone can get me the title of that song that plays during that ad I'd be shocked. I've been searching...
  9. Re: List: Erase element at iterator during iterations

    twanvl && bilm_ks methods worked fine with the expected results.

    Now, twanvl your method works identically to bilm_ks, I cannot see why your method is more "correct".

    If you go iter =...
  10. List: Erase element at iterator during iterations

    I em having trouble with a list iteration.

    I have to tranverse a list rather frequently, if an element is flagged for deletion then it must be removed.

    for (list<int> iter = l.begin(); iter !=...
  11. Replies
    5
    Views
    833

    Re: A decryption program.

    Cyrptography functions are written on purpose with high complexity. So any brute-force cracking attemp takes forever. Often cryptographic programmers want the complexitiy of their algo to run...
  12. Replies
    6
    Views
    3,223

    Re: Conversions - Dec to Hex, Oct, Bin

    ABC (base 16) to base 10 = (12 * 16^0) + (11 * 16^1) + (10 * 16^2) = 2748

    2748 (base 10) to base 16
    = 2748 / 16 = 171 remainder 12
    = 171 / 16 = 10 remainder 11
    = 10 / 16 = 0 remainder 10
    ...
  13. Replies
    4
    Views
    2,680

    Re: Linked List vs Array -- lots of read/writes

    Demands for the data structure:
    - adding is always at the end.
    - removal will occur anywhere.
    - Must be quick to transverse.
    - It will start size 0, max it can ever be is 4096

    See wut is...
  14. Replies
    4
    Views
    2,680

    Linked List vs Array -- lots of read/writes

    If I need to keep track of (n) number of items (n > 0 && n < 4096), these items will be tranversed and updated each frame, if an item is flagged to be removed it will. Array removal may be constant...
  15. Re: Cannot run *.exe from VC8 on anyone's comp...

    Er.... scratch that post.

    I was linking to the DLL...

    All is good now.
  16. Cannot run *.exe from VC8 on anyone's comp...

    I get this error message on every computer other than mine when I try and run my applications executable:
    "this application has failed to start because the application configuration is incorrect....
  17. Replies
    5
    Views
    4,936

    Re: stl::string to LPCWSTR

    Well isn't that irony. I had already asked this question and gotten a perfect answer from you.

    Thanks for the help (twice over) and sorry for the trouble,
    Halsafar
  18. Replies
    5
    Views
    4,936

    Re: stl::string to LPCWSTR

    I am not finding it...
    Tried several searches and came up with to many pages of results to care to search through. None authored: CornedBee
  19. Replies
    5
    Views
    4,936

    stl::string to LPCWSTR

    It seems a lot of functions want to force UNICODE correct programming. This is driving me into the wall...

    How can I convert a string to a LPCWSTR value? Everytime I try I seem to end up with...
  20. Replies
    5
    Views
    967

    Re: String Tokenizer -- nextDouble()

    I use:
    istringstream dblCheckStream(strToken);
    double dValue = 0.0;
    dblCheckStream >> dValue

    To parse the double, this same method also works for ints. Could this be...
  21. Replies
    5
    Views
    967

    Re: String Tokenizer -- nextDouble()

    So this behaviour is normal then?
    Unavoidable.

    Thanks,
    Halsafar
  22. Replies
    5
    Views
    967

    String Tokenizer -- nextDouble()

    This is a method within a class I wrote that is used to split up a string into tokens given the delimeter. I wanted functionality similiar to the Java equivelant.




    /**
    * Get the next double...
  23. Replies
    5
    Views
    684

    Quick string question

    I need to read/write a bunch of string's to a binary file. Now this obviously requires the use of a char array. I want to avoid having to store the length of the char array and instead just store...
  24. Replies
    2
    Views
    532

    Re: Member Function Pointer Mayham

    Lemme make life simplier on everyone:

    class A
    {
    virtual void foo() = 0;
    }

    class B : public A
    {
    void foo() {};
  25. Replies
    2
    Views
    532

    Member Function Pointer Mayham

    EDIT: Skip this and read my reply. It gives a much more clear scenerio.


    I need to make use of a function pointer to a member function. I am running into many issue's with this.

    The problem...
  26. Re: Virtual overridden function must be implemented in header?

    Yah I figure as much, I mean that is obvious. However VC8 is certainly complaining about it. foo() if its implimentation is in a source file I get an "unresolved external symbol". If I move I move...
  27. Replies
    2
    Views
    557

    Re: how to read char each element

    if(word[i]!= ' ' || ',' || '.' || '!' || '?')

    This may not be your problem but should be looked at. When you use Conditional OR || each statement is evaluated to a boolean. Your first condition...
  28. Virtual overridden function must be implemented in header?

    Lets say:

    class A {
    public:
    virtual void foo() = 0;
    };

    class B : public A {
    void foo();
    }
  29. Replies
    3
    Views
    1,128

    Re: Replace WinKey Hotkeys in XP (ie. Win+F)

    I suppose I could subclass the keyboard, deal and toss the message before windows gets it?
    Still simpler to just find it already made.
  30. Replies
    3
    Views
    1,128

    Replace WinKey Hotkeys in XP (ie. Win+F)

    I am acustomed to Linux and its environment that using Windows for anything but gaming seems like a big encumberson task... Anyway I'd like a way to map shortcuts like I do in Linux.

    Example:...
  31. Replies
    2
    Views
    2,065

    Re: VC8 Link to Multi-Threaded Debug

    Well it seems you are right and those pages I checked first are right.

    Problem is nobody told me that a source file had to present in the Solution.

    See, right click the project name, select...
  32. Replies
    2
    Views
    2,065

    VC8 Link to Multi-Threaded Debug

    Okay I know this is a rather basic question, but in VC6 and VC7 it was very easy to change how you linked your application to the runtime libraries. VC8 apparently is lacking this option or I cannot...
  33. Thread: Drive Switch

    by Halsafar
    Replies
    2
    Views
    464

    Re: Drive Switch

    Find your profile within the /Documents and Settings/user_name

    Try copying that from the old drive to the new drive... You will retain your old profile, so icons, start menu, etc...

    Not sure...
  34. Replies
    0
    Views
    681

    Force CPU Throttling

    Okay I got an AMD in my laptop which supports some power saving CPU Throttling (AMD's signature one, PowerNow or something I dunno...) Anyway, when I'm at school taking notes I have no need for...
  35. Replies
    11
    Views
    1,991

    Re: Help me! Worms

    I posted on WindowsForums.com here is the reply I got:

    Nellie2: "Well first of all, get rid of True Sword. It is a rogue program and is on Eric Howes list see here:...
  36. Replies
    11
    Views
    1,991

    Re: Help me! Worms

    I am following the removal instructions.
    From step one and on it seems there is nothing there.

    sfc /scannow did not restore hal.dll so it wasn't broken...
    Full System Scan did not find any...
  37. Replies
    11
    Views
    1,991

    Re: Help me! Worms

    Okay I ran
    sfc /scannow

    It took about 20 minutes heh but finished without any warnrings, errors, nothing no questions or anything...

    I also ran Norton 2005 fully up-to-date and it found...
  38. Replies
    11
    Views
    1,991

    Re: Help me! Worms

    I ran avast worm cleaner, it found nothing.
    True sword still finds it but is unable to deal with it, even though it says it has solved it.
    I checked sophos webpage for how to remove the problem....
  39. Replies
    11
    Views
    1,991

    Re: Help me! Worms

    Okay I downloaded the free trial.
    Ran a full scan.
    It found 80+ objects, mostly cookies, some FILENAME00#.CHK files.. All spyware apparently.

    After running Ewido I ran True Sword and it...
  40. Replies
    11
    Views
    1,991

    Help me! Worms

    Okay I have tried two different virus scanners and none can seem to remove the apparent set of worms on my comp.

    I've tried AVG, found none.
    I tried True Sword since it mentions knowledge of the...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width