Sign in to follow this  
Maverick Programmer

'LPSECURITY_ATTRIBUTES' woes

Recommended Posts

I have a friend who's trying to compile his graduation project under Visual Studio from switching from Dev-C++. Everything is fine, but this is what he e-mailed me: Thanks, I compiled some opengl projects, and I compiled yours. But I cant compile my project. I have a .h file that uses windows.h lib, and everytime I try to compile, I get the error: c:\arquivos de programas\microsoft sdks\windows\v6.0a\include\wincon.h(196) : error C2061: syntax error : identifier 'LPSECURITY_ATTRIBUTES' I believe that wincon.h is called by windows.h.... But I dont know what to do... I've searched Google for a solution and came up zilch. He said he's tried many things and can't get it to work. Any help?

Share this post


Link to post
Share on other sites
Slapping together bits from the Platform SDK (aka MSDN)

wincon.h "contains the public data structures, data types, and procedures exported by the NT console subsystem."

SECURITY_ATTRIBUTES is declared in Winbase.h; include Windows.h.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this