How do I use WDK with Visual Studio 2008?

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
I just installed WDK, but trying to include the headers isnt working for me. Im trying to #include <hidsdi.h>. hidsdi.h is in C:WinDDK6000incapi, and if I do #include "C:WinDDK6000incapihidsdi.h" is works just fine. However if I add C:WinDDK6000incapi in Tools -> Options -> Projects and Solutions -> VC++ Directories -> Include Files, I get tons of error when I try to use #include <hidsdi.h>. Here are just a few of them:

<div style="text-align:left
<div class=codeseg>
<div class=codecontent>
<div class=codesniptitle><span style="width:100% Code Snippet
Error    1    error C2065: _In_ : undeclared identifier    c:program filesmicrosoft visual studio 9.0vcincludeexcpt.h    60    USB2
Error    2    error C2144: syntax error : _EXCEPTION_RECORD should be preceded by )    c:program filesmicrosoft visual studio 9.0vcincludeexcpt.h    60    USB2
Error    3    error C2448: _except_handler : function-style initializer appears to be a function definition    c:program filesmicrosoft visual studio 9.0vcincludeexcpt.h    60    USB2
Error    4    error C2144: syntax error : void should be preceded by ;    c:program filesmicrosoft visual studio 9.0vcincludeexcpt.h    61    USB2
Error    5    error C2144: syntax error : _CONTEXT should be preceded by ;    c:program filesmicrosoft visual studio 9.0vcincludeexcpt.h    62    USB2


Do I need to add some other directories to the Include Files?
<div style="text-align:left


View the full article
 
Back
Top