I've been programming my app in VS.NET, and finally decided to compile in eVC4. I got some errors which I find odd;
Code (declared in CGameWindow class):
static const DWORD DEFAULT_HEIGHT = 100;
Errors:
c:\source\generic\window.h(11) : error C2258: illegal pure syntax, must be '= 0'
c:\source\generic\window.h(11) : error C2252: 'DEFAULT_HEIGHT' : pure specifier can only be specified for functions
...
I just don't get it. As far as I know it's perfectly legal C++ code. Am I going to have to use #define for my constants? I'd prefer not to, but I just don't know what's going on here.
Code (declared in CGameWindow class):
static const DWORD DEFAULT_HEIGHT = 100;
Errors:
c:\source\generic\window.h(11) : error C2258: illegal pure syntax, must be '= 0'
c:\source\generic\window.h(11) : error C2252: 'DEFAULT_HEIGHT' : pure specifier can only be specified for functions
...
I just don't get it. As far as I know it's perfectly legal C++ code. Am I going to have to use #define for my constants? I'd prefer not to, but I just don't know what's going on here.