The portion of source code you provided is not even 30+ lines long, so it's hard for us to tell where line 30 is. That's where your errors are, but there's no way for us to tell which line(s) of...
Type: Posts; User: jrohde
The portion of source code you provided is not even 30+ lines long, so it's hard for us to tell where line 30 is. That's where your errors are, but there's no way for us to tell which line(s) of...
Why exactly just 2 reasons?
In reality, there are many more than just 2 reasons to use C and/or C++ (mostly C++ though). For one thing, don't let anyone tell you it's no longer relevant (heck,...
Good point. I should note that originally, this class did not use std::vector internally, and those are relics from the old code I should have just eliminated. Had I done that in the first place,...
Judging by similar posts elsewhere (none exactly similar to my situation), it appears to be an issue with iterator stuff specifically used in DEBUG mode. If one were to ask Microsoft, I'm sure...
Hello,
First, let me state that I have solved the issue that was giving me the VC++ debug assertion: "Expression: vector iterators incompatible". It's just that I'm not exactly how my change made...
Yes, you'll use ": public Snake" in your AISnake declaration.
Then, the next step is removing all the identical members from the derived class, since they will already exist in the base class. ...
The problem is that you cannot declare an array as a class member the way you have int the first version of your class declaration, since the compiler doesn't know how much memory to allocate on the...
You know what? I revisited MSDN, and it does indeed say, "typically immediately before the program exits". I have no idea what page I saw that said "somewhere in your code". But I know it was...
MSDN wasn't specific as to exactly where to put that line - they say the statement should be placed "somewhere in your code." I was under the impression that it simply turned on some kind of global...
Hello,
Has anyone ever experienced memory leaks in AppWizard-generated projects? I won't waste
time explaining what prompted me to check this out, but the ONLY code I have inserted into
...
Hello all,
The very short MFC dialog-based app I'm testing is shown below - I'm having issues with the message map of my user-defined message.
#define IDM_MYMESSAGE (WM_USER + 1)
#include...