IDE for Windows Driver Development

4.3k views Asked by At

I am planning to write a Windows(XP, Vista and 7) Virtual printer driver using C/C++. So I wanted to know which is the best IDE out there which I can use for this. From what I have read Windows Driver Kit 8(WDK-8) is much more integrated with the new Visual Studio 2012 but drivers for windows XP are not supported with WDK-8. So I was hoping if somebody could suggest me about which version would work out best for me.

Since Visual Studio is pretty expensive, so I don't want to buy it unless it has some advantages over using Eclipse in my case.

Also, if I need to use Visual Studio, then which version of visual studio would suffice for a single developer like me: Professional, Premium or Ultimate ?

3

There are 3 answers

3
RolandXu On BEST ANSWER

before VS 2012, the Visual Studio has no advantages than Eclipse. Almost all driver is built in command line mode, and use the windbg as debugger, so the VS is just an editor.

in the VS 2012, it build a template to WDF driver, it is easy to create a driver from template. But I don't think it is a reason to by the expensive VS.

0
Addy On

Visual Studio 2013 Community Edition is free and can be used as an IDE for the drivers

0
Colin Smith On

Take a look at DDKBuild.

http://www.hollistech.com/Resources/ddkbuild/ddkbuild.htm

I use Visual Studio 2012 in combination with DDKBuild to compile drivers - when errors show up I can see them in the Error List window and can get taken straight to the right line in the driver source...saves a bunch of time!

I've set up various SolutionConfigurations for different driver options that I want e.g. running a PreFast pass, compiling as 32bit, 64bit, for different OS targets, etc - makes it super easy to switch between Release and Debug, or the static analysis tools.

Basically you create a new Visual Studio Makefile Project in Visual studio, then set the NMAKE|Build Command Line to something like this:

ddkbuild -WIN7 -prefast checked . -cZ
or
ddkbuild -WIN7XP checked . -cZ
or
ddkbuild -WIN7XP free . -cZ
etc

I haven't used it myself, but for a more powerful way to leverage Visual Studio to do driver development, take a look at VisualDDK

http://visualddk.sysprogs.org/