Hi
I have a project that includes a device driver and the developer is able to compile it. I installed MS Visual C++ 2008 and the first error was "fatal error C1083: Cannot open include file: 'ntddk.h': No such file or directory". I downloaded the WDK from Microsoft website and installed it, I also executed Start -> All Programs -> Windows Driver Kits -> WDK 7600.16385.1 -> Build Environments -> Windows XP and "x86 Checked Build Environment" and "x86 Free Build Environment".
The problem persist, so I realized that I have to add by hand the paths, I don't know what to add, so I tried:
MS Visual C++ 2008 -> Tools -> Options -> Projects and Solutions -> VC++ Directories -> Include File and I added "C:\WinDDK\7600.16385.1\inc\ddk" and now I get:
c:\winddk\7600.16385.1\inc\ddk\wdm.h(54) : fatal error C1083: Cannot open include file: 'ntdef.h': No such file or directory
I did foundntdef.h under C:\WinDDK\7600.16385.1\inc\api and I added it too, but now I got a lot of errors and warnings. Since this project compile fine on the developer workstation I believe it's a problem on my configuration.
What is the right paths to add to MSVC++ 2008 to compile device drivers?
Thank you