I have just started learning game programming so I am now using windows applications instead of windows consoles.
To start I wanted to use the wizard to make a HelloWorld program. It appears to work, but then it gives me an error:
c:\program files\microsoft visual studio\vc98\include\winnt.h(1092) : error C2146: syntax error : missing '';'' before identifier ''KSPIN_LOCK''
and then a second error which is related apparently:
"c:\program files\microsoft visual studio\vc98\include\winnt.h(1092) : fatal error C1004: unexpected end of file found
I have reinstalled the compiler to see if winnt.h was corrupt or something. That has done nothing.
The line in winnt.h which it points to is line 1092, which is
typedef UINT_PTR KSPIN_LOCK;
Someone please help!
If you''re using the wizard, this might not be the case, but sometimes, if you declare structs/classes before your #includes and forget to put a semicolon after the closing brace, it can cause an error in the header. Alternately, if you''re not using WinNT, you can probably remove the include line because you probably won''t need it. --
I don''t know then...I just made a hello world program from the wizard and it compiled fine. But here''s the link to my page with the articles now--you may get some use out of them: http://www20.brinkster.com/draqza/