From: Ali on
On Mar 20, 10:29 pm, "Don Burn" <b...(a)stopspam.windrvr.com> wrote:
> This has been answer numerous times, you cannot reliably build s driver
> without invoking the command prompt model. Using Visual Studio directly
> will just cause bugs, and disable a number of tools you want to be using
> for good quality code. If you want to develop in a Visual Studio GUI, use
> DDKBUILD fromhttp://www.hollistech.com/.
>
> From, your error messages (stdafx is a huge hint), you need to step back
> and take a clanss or at a minimum go read a good book such as Walter Oney's
> "Programming the Windows Driver Model, Second Edition" before even going
> near the kernel.
>
> --
> Don Burn (MVP, Windows DDK)
> Windows 2k/XP/2k3 Filesystem and Driver Consulting
> Website:http://www.windrvr.com
> Blog:http://msmvps.com/blogs/WinDrvr
> Remove StopSpam to reply
>
> "Rams" <R...(a)discussions.microsoft.com> wrote in message
>
> news:3CD7BAE1-56CF-41B6-A27A-1C32EF608DDC(a)microsoft.com...
>
> >I just setup latest Windows DDK When I tried to build my code it throws an
> > error.
>
> > stdafx.h(26) : fatal error C1083: Cannot open include file: 'usbioctl.h':
> > No
> > such file or directory
>
> > fatal error C1083: Cannot open include file: 'winddi.h': No such file or
> > directory
>
> > I have the following message too:
>
> > WINVER not defined. Defaulting to 0x0502 (Windows Server 2003)
>
> > It looks like some problem with include files or Build environment. Can
> > you
> > tell me how do I resolve?
>
> > Note that I am building from Visual Studio. Not DOS Command prompt.
>
> > Thanks

Snip from Don:
> you need to step back and take a clanss or at a minimum go read a good book such as Walter Oney's "Programming the Windows Driver Model, Second Edition" >before even going near the kernel.

Well! that was quite scary;-)

ali

First  |  Prev  | 
Pages: 1 2
Prev: Virtual Audio Device Driver Question
Next: Winusb c#