Hi, all:
Seriously have no idea where to put this question, but I am using Visual Studio 2008 C++ 9.0 .
I installed WinDDK 7600.16385.0 at C:\WinDDK\7600.16385.0 , and put the include directory C:\WinDDK\7600.16385.0\inc\api down to my project settings. I clearly include Windows.h on top of my .cpp file, but still, I failed to compile my file and
the error messages are like:
error C2065: 'DEV_BROADCAST_HANDLE' : undeclared identifier
error C2065: 'HDEVNOTIFY' : undeclared identifier
error C2065: 'DBT_DEVTYP_HANDLE' : undeclared identifier
...
etc...
I noticed that several posts are talking about _WIN32_WINNT 0x0400 or 0x0500 issue. My current header file is:
#if _WIN32_WINNT < 0x0400
#define _WIN32_WINNT 0x0400
#endif
#include "windows.h"
How can I just make everything successfully compiled under my environment?
Rgds
Pei
Welcome to Vision Open http://www.visionopen.com