Aug 7th, 2002, 05:16 PM
#1
Thread Starter
Fanatic Member
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.
Aug 7th, 2002, 11:03 PM
#2
PowerPoster
Hmm, maybe there are some errors in those two header files. Try replacing them with the ones in the attachment.
Attached Files
Aug 8th, 2002, 08:04 AM
#3
Thread Starter
Fanatic Member
Nope, that removed only 2 errors, now its 7.
Aug 8th, 2002, 10:53 AM
#4
Frenzied Member
Did you make a it a MFC project?
MSVS 6, .NET & .NET 2003 Pro
I HATE MSDN with .NET & .NET 2003!!!
Check out my sites:
http://www.filthyhands.com
http://www.techno-coding.com
Aug 8th, 2002, 11:22 AM
#5
Monday Morning Lunatic
Try downloading and installing the Platform SDK from msdn.microsoft.com/downloads
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Aug 9th, 2002, 12:00 PM
#6
Thread Starter
Fanatic Member
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Rules
Click Here to Expand Forum to Full Width