Jump-start your project by learning from devs who
write Windows drivers and file systems every day.
Take an OSR seminar!

Upcoming OSR Seminars:
WDM Lab, Seattle, WA 16 August 2010
WDF Lab, Santa Clara, CA 27 September 2010
Debug Lab, Portland, OR 18 October 2010
Windows Internals & Software Drivers Lab, Santa Clara, CA 15 November 2010


Go Back   OSR Online Lists > ntdev
Welcome, Guest
You must login to post to this list
  Message 1 of 3  
23 May 09 13:09
Long Bu
xxxxxx@gmail.com
Join Date: 20 May 2009
Posts To This List: 10
Add include directory of DDK as "additional include directories" in vc++ 2008 express

Hi, I want to use SetupDIxxx in my application to access the interface of my driver. So I add the 'inc' directory of the DDK "C:\WinDDK\6001.18002\inc\api" as "additional include directories" in vc++ 2008 express". But I've got a lot of error: >------ Build started: Project: bbb, Configuration: Debug Win32 ------ 1>Compiling... 1>stdafx.cpp 1>c:\program files\microsoft visual studio 9.0\vc\include\excpt.h(60) : error C2065: '_In_' : undeclared identifier 1>c:\program files\microsoft visual studio 9.0\vc\include\excpt.h(60) : error C2144: syntax error : '_EXCEPTION_RECORD' should be preceded by ')' 1>c:\program files\microsoft visual studio 9.0\vc\include\excpt.h(60) : error C2448: '_except_handler' : function-style initializer appears to be a function definition 1>c:\program files\microsoft visual studio 9.0\vc\include\excpt.h(61) : error C2144: syntax error : 'void' should be preceded by ';' 1>c:\program files\microsoft visual studio 9.0\vc\include\excpt.h(62) : error C2144: syntax error : '_CONTEXT' should be preceded by ';' What should I do? I heard that the DDK code(the SetupDIxxx) needs to be build in the DDK build environment from some thread around internet. Cheers. Long
  Message 2 of 3  
23 May 09 14:23
MM
xxxxxx@evitechnology.com
Join Date: 28 May 2005
Posts To This List: 2209
RE: Add include directory of DDK as "additional include directories" in vc++ 2008 express

The problem is either that you're not including 'specstrings.h' before you include some other file that uses it, or you're including the wrong version inadvertently by adding that directory either before or after where it needs to be. I don't know the specific answer, but I guess I'd try moving that directory to the front or the end of the include path and see what happens. Good luck, mm
  Message 3 of 3  
23 May 09 15:09
Maxim S. Shatskih
xxxxxx@storagecraft.com
Join Date: 20 Feb 2003
Posts To This List: 6526
Re: Add include directory of DDK as "additional include directories" in vc++ 2008 express

Try installing Platform SDK and include the header from there. -- Maxim S. Shatskih Windows DDK MVP xxxxx@storagecraft.com http://www.storagecraft.com "Long Pu" <xxxxx@gmail.com> wrote in message news:124644@ntdev... > Hi, > I want to use SetupDIxxx in my application to access the interface > of my driver. > So I add the 'inc' directory of the DDK > "C:\WinDDK\6001.18002\inc\api" as "additional include directories" in > vc++ 2008 express". > But I've got a lot of error: >>------ Build started: Project: bbb, Configuration: Debug Win32 ------ > 1>Compiling... > 1>stdafx.cpp <...excess quoted lines suppressed...>
Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You must login to OSR Online AND be a member of the ntdev list to be able to post.

All times are GMT -5. The time now is 13:48.


Copyright ©2005, OSR Open Systems Resourcs, Inc.
Based on vBulletin Copyright ©2000 - 2005, Jelsoft Enterprises Ltd.
Modified under license