Search:

Type: Posts; User: MilleniumFalcon

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. If you expect someone to help you, you need to...

    If you expect someone to help you, you need to post all the code relevant to the creation of the dialog box, which you haven't. The majority of what you've posted has been poorly formatted code that...
  2. You can use sprintf() for conversions to a...

    You can use sprintf() for conversions to a string. The call could be implemented as this,


    sprintf( myString, "%d", myInt );



    I'm not sure I understand what you're asking for. Are you...
  3. Implementing Permutations with Strings

    I'm trying to create code that can iterate through all the permutations of a string in the given range minimum-maximum. I don't want any repeat permutations either. I'm stuck on how to generate the...
  4. Google, GUI

    Google, GUI
  5. Replies
    16
    Views
    3,330

    Here is the method I would use to "spin the...

    Here is the method I would use to "spin the wheel":


    enum
    {
    SPIN = 1,
    EXIT
    };
  6. Replies
    4
    Views
    1,497

    You should post Reverse then, since it's...

    You should post Reverse then, since it's obviously relevant to your problem. I understand what you're trying to achieve with your if statement, but tolower() will not work for entire strings. You may...
  7. Replies
    4
    Views
    1,497

    You can't use tolower() on an entire string. The...

    You can't use tolower() on an entire string. The function tolower() is a C function, not a C++ function( included in ctype.h ). I'm not sure where you are getting the "Reverse" in the conditional...
  8. What should I use for playback of .AVI files?

    I tried to write a .AVI player a while back using the Video For Windows library, but I couldn't get it to work. The main problem I had was that for some reason it could not decompress the video I...
  9. Replies
    2
    Views
    1,384

    You do realize that cleaning up this code may...

    You do realize that cleaning up this code may help you solve your problem? No one is going to sort through this code to find some generic issue of a "huge number". You should post more details about...
  10. Are you asking me to try the program without...

    Are you asking me to try the program without doing anything meaningful in TakeSnapshot?

    Like :
    int TakeSnapshot( int flags ) { return FALSE; }

    As for wrapping my class's methods into...
  11. Segmentation fault when calling factory class method

    Hello, I'm still working on my process API, as in my previous posts. Right now I'm trying get my class portable so I can use it for any language/compiler by using a factory design pattern. I'm having...
  12. I said that was a stupid comment, I posted it...

    I said that was a stupid comment, I posted it without thinking. You don't have to be mean about it.
  13. It doesn't matter, it will still crash because...

    It doesn't matter, it will still crash because you tried to print an integer like a string, which just doesn't work. If you're wanting to do something different, ask.
  14. I can tell you right now that's impossible. Your...

    I can tell you right now that's impossible. Your compiler will give you an warning saying that the %s format expects a 'char *', but you gave it a value of type int. Then if you run your program,...
  15. I know what it is!

    I know what it is!
  16. I told you I'm not clueless. My previous post was...

    I told you I'm not clueless. My previous post was stupid though, Code::Blocks has nothing to do with compilation. It would probably pass in the files regardless and GCC would handle it as whichever.
  17. I've done that before, but I've never been sure...

    I've done that before, but I've never been sure if the IDE actually detects that and changes the compilation process or not. I'm not clueless about how to use Code::Blocks.
  18. Well I suppose that complexity is very...

    Well I suppose that complexity is very subjective, so the fact that I'm experienced with C may obscure my vision as far as what C++ may be capable of.

    As far as getting rid of that many functions,...
  19. @Phantomotap I'm not having problems with...

    @Phantomotap

    I'm not having problems with Code::Blocks in general, just for some reason their DLL project wizard doesn't give me the option to compile as C. There is probably a way around this,...
  20. What do you mean "why did I allocate my snapshot...

    What do you mean "why did I allocate my snapshot on the heap", I need to store it internally in my class until the user deletes the object or takes another snapshot. That way the information the user...
  21. I have no idea, I ran it a billion times and...

    I have no idea, I ran it a billion times and debugged it on two different computers, it should've crashed. That makes sense of only the name finding being accurate, since that was the first field in...
  22. Bsearch() isn't finding an integer key in my array.

    I've been working at this for hours, but I can't figure out why bsearch() is not returning a key that's obviously in my array. Using my program's output as a debugging tool, I found that it compares...
  23. Replies
    36
    Views
    4,049

    It's C++, but only because my version of...

    It's C++, but only because my version of Code::Blocks didn't happen to give me the option to compile my DLL as C. I decided just to go with it in the current project I'm writing also, which is where...
  24. Replies
    36
    Views
    4,049

    I could make a cleanup function I suppose. Maybe...

    I could make a cleanup function I suppose. Maybe change my destroySystemSnapshot() to the code after the label... Isn't keeping the cleanup code relevant to the function inside of it nicer though?
  25. Replies
    36
    Views
    4,049

    Is this an approved use of goto?

    I'm building an interface for interacting with processes on Windows. In order to not have messy error handling code where I'm duplicating a lot of the same behavior for every error, I decided to use...
Results 1 to 25 of 34
Page 1 of 2 1 2