I am using Visual C++, and I am trying to include a file that uses BYTE (as well as DOUBLE, LPCONTEXT…) , which by default is not a defined type.
If I include windows.h, it works fine, but windows.h also defines GetClassName wich I don’t need. I am looking for an alternative to windows.h include, that would work with VC++ and would define most of the types like BYTE, DOUBLE …
Thanks
You need to include
windows.hto get those types. If you want to reduce the number of defines thatwindows.hbrings in, you can#define WIN32_LEAN_AND_MEANbefore includingwindows.h, which will exclude a lot of stuff (but not everything). See http://support.microsoft.com/kb/166474.