Results 1 to 6 of 6

Thread: A little (?) problem

  1. #1

    Thread Starter
    Fanatic Member petrus's Avatar
    Join Date
    May 2002
    Location
    pBytes[sizeof(pBytes)/2]
    Posts
    553

    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.
    ICQ: 128716725

  2. #2
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    Hmm, maybe there are some errors in those two header files. Try replacing them with the ones in the attachment.
    Attached Files Attached Files
    Baaaaaaaaah

  3. #3

    Thread Starter
    Fanatic Member petrus's Avatar
    Join Date
    May 2002
    Location
    pBytes[sizeof(pBytes)/2]
    Posts
    553
    Nope, that removed only 2 errors, now its 7.
    ICQ: 128716725

  4. #4
    Frenzied Member Technocrat's Avatar
    Join Date
    Jan 2000
    Location
    I live in the 1s and 0s of everyones data streams
    Posts
    1,024
    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


  5. #5
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  6. #6

    Thread Starter
    Fanatic Member petrus's Avatar
    Join Date
    May 2002
    Location
    pBytes[sizeof(pBytes)/2]
    Posts
    553
    I fixed the problem!
    ICQ: 128716725

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width