views:

544

answers:

6

does anyone have an article how to do this ?

thanks

A: 

Down load the DDk and start there: http://www.microsoft.com/whdc/devtools/wdk/default.mspx

Preet Sangha
I already know how to write drivers.I want to know how to combine DDK and VS.
Preet- fancy seeing you here. :-)
RichardOD
apologies lea. I took the question from the perspective of someone who was new to writing drivers.
Preet Sangha
+3  A: 

How to Configure Visual Studio 2008 for Compiling Drivers

Kirill V. Lyadvinsky
+1 good answer!
Preet Sangha
This is actually not a recommended practise because it uses the compiler and linker of Visual Studio, not the DDK. Instead, you could use the ddkbuild.bat to run DDK's build.exe from a Visual Studio makefile project : http://hollistech.com/Resources/ddkbuild/ddkbuild.htm
Taneli Waltari
A: 

In VS create a makefile project. Add your sources, headers, makefile and sourcefile. Open project properties->Configuration properties->NMake->Build Command Line and write:

call $(WINDDK)\bin\setenv.bat $(WINDDK) fre wnet cd /d $(ProjectDir) build.exe -I

Now you can build from VS. The advantage of the makefile project: it provides you with as many configurations as you need (w2k, wxp, wnet, wlh and etc) and you can build from the DDK command line.

P.S. "fre wnet" - is a sample configuration, use what is required for your project. It is good to have both fre and chk configurations. WINDDK - enviroment variable with a path to the DDK root.

Sergius
+1  A: 

If you want tu use ddk build and windows DDK use http://www.hollistech.com/Resources/ddkbuild/ddkbuild.htm manual, it is preaty good (I think most of it works still) that should have you going.

CrazyChris
+2  A: 

Download and install VisualDDK and you'll be able to create driver projects and debug drivers directly from Visual Studio.

A: 

The ddkbuild from OSR-Online is a nice alternative ddkbuild download link.

Christopher