-
A little (?) problem
hi!
I got this little, really big problem:
I can't make windows in C++.
I have Visual C++ 6.0.
When the compiler is trying to compile my code, it reveals 9 errors.
it's the windows.h that result in all that errors.
As fast as i enter "#include <windows.h>" and compiles, the compiler spits these 9 errors in my face.
I know my coding is error-free!
BTW, here is the errors and please help!
c:\program\microsoft visual studio\vc98\include\winuser.h(856) : error C2061: syntax error : identifier 'LPSECURITY_ATTRIBUTES'
c:\program\microsoft visual studio\vc98\include\winuser.h(866) : error C2061: syntax error : identifier 'LPSECURITY_ATTRIBUTES'
c:\program\microsoft visual studio\vc98\include\winuser.h(986) : error C2061: syntax error : identifier 'LPSECURITY_ATTRIBUTES'
c:\program\microsoft visual studio\vc98\include\winuser.h(994) : error C2061: syntax error : identifier 'LPSECURITY_ATTRIBUTES'
c:\program\microsoft visual studio\vc98\include\winnls.h(818) : error C2501: 'WINBASEAPI' : missing storage-class or type specifiers
c:\program\microsoft visual studio\vc98\include\winnls.h(826) : error C2146: syntax error : missing ';' before identifier 'UINT'
c:\program\microsoft visual studio\vc98\include\winnls.h(826) : error C2501: 'WINBASEAPI' : missing storage-class or type specifiers
c:\program\microsoft visual studio\vc98\include\winnls.h(826) : error C2086: 'WINBASEAPI' : redefinition
c:\program\microsoft visual studio\vc98\include\winnls.h(826) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
-
1 Attachment(s)
Hmm, maybe there are some errors in those two header files. Try replacing them with the ones in the attachment.
-
Nope, that removed only 2 errors, now its 7.
-
Did you make a it a MFC project?
-
Try downloading and installing the Platform SDK from msdn.microsoft.com/downloads :)
-