Hi!
I'm trying to get the memory checking program to work in Chapter 5 (page 134).
I'm getting some weird errors though...
Some of the errors I fixed by adding #include <windows.h> at the top.
Now I'm down to four errors. The first of which is "syntax: missing ';' before 'type'" on the line that says:
char *buff = GCC_NEW char[virtualRAMNEEDED];
The only other changes I've made to the code is substituting a message box where it says "throw GameCodeError".
First off, I *know* I don't have any missing semicolons and MSVC++ ver 6.0 is obviously senile. Secondly, I've double checked my code to make sure it matched the book (other than the #include and message boxes).
Am I doing something wrong? I didn't see anything about that program on this website...
Thanks!
mw
I'm trying to get the memory checking program to work in Chapter 5 (page 134).
I'm getting some weird errors though...
Some of the errors I fixed by adding #include <windows.h> at the top.
Now I'm down to four errors. The first of which is "syntax: missing ';' before 'type'" on the line that says:
char *buff = GCC_NEW char[virtualRAMNEEDED];
The only other changes I've made to the code is substituting a message box where it says "throw GameCodeError".
First off, I *know* I don't have any missing semicolons and MSVC++ ver 6.0 is obviously senile. Secondly, I've double checked my code to make sure it matched the book (other than the #include and message boxes).
Am I doing something wrong? I didn't see anything about that program on this website...
Thanks!
mw
Blucast Corporation