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...
Type: Posts; User: MilleniumFalcon
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...
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...
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...
Google, GUI
Here is the method I would use to "spin the wheel":
enum
{
SPIN = 1,
EXIT
};
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...
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...
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...
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...
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...
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...
I said that was a stupid comment, I posted it without thinking. You don't have to be mean about it.
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.
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,...
I know what it is!
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.
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.
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,...
@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,...
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...
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...
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...
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...
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?
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...