Using the Visual Studio 6.0 Driver Build Environment Michigan

This article explores how to use the standard Visual Studio environment while developing device drivers.

Local Companies

Corporate IT Source
248-396-1573
6841 N. Rochester Rd.
Rochester Hills, MI
Cms Software
313-965-4775
500 Griswold St
Detroit, MI
Protocol Syst C
313-534-8773
18201 W 8 Mile Rd
Detroit, MI
All About Technology
313-962-2430
2727 2nd Ave
Detroit, MI
Computer Power Store
313-640-4681
15411 Mack Ave
Detroit, MI
L & M Office Products
313-861-5707
8514 W Mcnichols RD
Detroit, MI
Keane Inc
248-356-2000
3000 Northwestern St
Detroit, MI
Sync Technologies
313-963-5353
2727 2nd Ave
Detroit, MI
Woodwing USA
313-962-0542
615 Griswold St
Detroit, MI
PC Menders Computer Services
313-397-2713
18256 Grand River Ave
Detroit, MI

provided by: 
Originally published at Internet.com


I've already borrowed so much information from CodeGuru that I've started getting frustrated that I haven't contributed anything myself to the site. Therefore, I respectfully offer this articles to my fellow programmers.

Some time ago, I had to write an NT 4.0 device driver. Since I was already used to the comfort of Visual Studio 6, it was hard to me to fall back to the free build and checked build environments, provided by the DDK. Especially I missed the browser possibilities that Visual Studio provides.

So, I started around digging into the DDK build environment to find out how it works, and if I could extend the environment to be usable within the Visual Studio. My primary goal was to keep the existing environment intact, and furthermore, I want to use this environment within VS 6.

The solution was simpler than I expected. I only need to set up some additional files.

_build.bat

. This *.bat is directly called by VS 6 and has the same command parameters as the DDK setenv.bat. This *.bat will clean up some existing files ( i.e. build.dat which I do wish to rebuild every time ), saves the actual directory ( see PrCHDIR ) and calls the original setenv.bat from the DDK. The _build.bat calls bscmake.exe at the end. This enables me to browse to the source code afterwards. The _build.bat is not project-depended.

PrCDIR.exe

On starting setenv.bat, one is move into the DDK root directory. And this not so good if you want to automate the environment. The small PrCHDIR program prints the actual directory and drive letter. The _build.bat catches it output and stores it into a @temp.bat. Once the setenv.bat has been called, the @temp.bat puts you back into your proper build directory.

I386mk.inc

The DDK build environment use this file which resides in the %DDKROOT%\Inc directory. If you copy this file into your proper build directory, the Build will use this file instead. I extended this file with following lines: !IF "$(ASM_LST)"=="YES" DBGFLAGS=$(DBGFLAGS) /FAcs /Fa$(TARGETPATH)\$(TARGET_DIRECTORY)\$(TARGETNAME).asm !ENDIF !IF "$(GEN_SBR)"=="YES" DBGFLAGS=$(DBGFLAGS) /FR$(TARGETPATH)\$(TARGET_DIRECTORY)\$(TARGETNAME).sbr !END ...

Read article at Internet.com site

Featured Local Company

Corporate IT Source

248-396-1573
6841 N. Rochester Rd.
Rochester Hills, MI

Related Articles
- MSBuild Features for Visual C++ Michigan
MSBuild is the build platform that Microsoft is using across all developer and related tools moving forward. Visual C++ is the last major compiler offering from Microsoft to move onto the MSBuild platform, with the Visual C++ 2010 release using MSBuild as its native project format. Explore the MSBuild basics from a C++ perspective, and see how it can improve your build process.
- Automating Repetitive Tasks in Visual Studio Michigan
- Resizable Docking Window 2 Michigan
- Interacting with .NET WinForms, Part 1 Michigan
- Visual Basic .NET as a Fully Object-Oriented Language Michigan
- Visual Basic .NET Attributes Michigan
- C# Tips and Tricks Michigan
- An Active Server Pages Tutorial, Part 1 Michigan
- Custom MSBuild Task Development with Visual C++ Michigan
- Configuring a ClickOnce Deployment Michigan
Regional Articles
- Using the Visual Studio 6.0 Driver Build Environment Adrian MI
- Using the Visual Studio 6.0 Driver Build Environment Allegan MI
- Using the Visual Studio 6.0 Driver Build Environment Allen Park MI
- Using the Visual Studio 6.0 Driver Build Environment Alpena MI
- Using the Visual Studio 6.0 Driver Build Environment Ann Arbor MI
- Using the Visual Studio 6.0 Driver Build Environment Auburn Hills MI
- Using the Visual Studio 6.0 Driver Build Environment Battle Creek MI
- Using the Visual Studio 6.0 Driver Build Environment Bay City MI
- Using the Visual Studio 6.0 Driver Build Environment Belleville MI
- Using the Visual Studio 6.0 Driver Build Environment Benton Harbor MI
- Using the Visual Studio 6.0 Driver Build Environment Berkley MI
- Using the Visual Studio 6.0 Driver Build Environment Big Rapids MI
- Using the Visual Studio 6.0 Driver Build Environment Bloomfield Hills MI
- Using the Visual Studio 6.0 Driver Build Environment Brighton MI
- Using the Visual Studio 6.0 Driver Build Environment Burton MI
- Using the Visual Studio 6.0 Driver Build Environment Cadillac MI
- Using the Visual Studio 6.0 Driver Build Environment Canton MI
- Using the Visual Studio 6.0 Driver Build Environment Cheboygan MI
- Using the Visual Studio 6.0 Driver Build Environment Clarkston MI
- Using the Visual Studio 6.0 Driver Build Environment Clinton Township MI
- Using the Visual Studio 6.0 Driver Build Environment Clio MI
- Using the Visual Studio 6.0 Driver Build Environment Coldwater MI
- Using the Visual Studio 6.0 Driver Build Environment Commerce Township MI
- Using the Visual Studio 6.0 Driver Build Environment Comstock Park MI
- Using the Visual Studio 6.0 Driver Build Environment Davison MI
- Using the Visual Studio 6.0 Driver Build Environment Dearborn Heights MI
- Using the Visual Studio 6.0 Driver Build Environment Dearborn MI
- Using the Visual Studio 6.0 Driver Build Environment Detroit MI
- Using the Visual Studio 6.0 Driver Build Environment Dowagiac MI
- Using the Visual Studio 6.0 Driver Build Environment East Lansing MI
- Using the Visual Studio 6.0 Driver Build Environment Eastpointe MI
- Using the Visual Studio 6.0 Driver Build Environment Eaton Rapids MI
- Using the Visual Studio 6.0 Driver Build Environment Escanaba MI
- Using the Visual Studio 6.0 Driver Build Environment Farmington MI
- Using the Visual Studio 6.0 Driver Build Environment Fenton MI
- Using the Visual Studio 6.0 Driver Build Environment Ferndale MI
- Using the Visual Studio 6.0 Driver Build Environment Flat Rock MI
- Using the Visual Studio 6.0 Driver Build Environment Flint MI
- Using the Visual Studio 6.0 Driver Build Environment Flushing MI
- Using the Visual Studio 6.0 Driver Build Environment Fort Gratiot MI
- Using the Visual Studio 6.0 Driver Build Environment Fraser MI
- Using the Visual Studio 6.0 Driver Build Environment Garden City MI
- Using the Visual Studio 6.0 Driver Build Environment Gaylord MI
- Using the Visual Studio 6.0 Driver Build Environment Gladwin MI
- Using the Visual Studio 6.0 Driver Build Environment Grand Blanc MI
- Using the Visual Studio 6.0 Driver Build Environment Grand Haven MI
- Using the Visual Studio 6.0 Driver Build Environment Grand Ledge MI
- Using the Visual Studio 6.0 Driver Build Environment Grand Rapids MI
- Using the Visual Studio 6.0 Driver Build Environment Grandville MI
- Using the Visual Studio 6.0 Driver Build Environment Grosse Pointe MI
- Using the Visual Studio 6.0 Driver Build Environment Hamtramck MI
- Using the Visual Studio 6.0 Driver Build Environment Harper Woods MI
- Using the Visual Studio 6.0 Driver Build Environment Harrison Township MI
- Using the Visual Studio 6.0 Driver Build Environment Hazel Park MI
- Using the Visual Studio 6.0 Driver Build Environment Highland Park MI
- Using the Visual Studio 6.0 Driver Build Environment Hillsdale MI
- Using the Visual Studio 6.0 Driver Build Environment Holland MI
- Using the Visual Studio 6.0 Driver Build Environment Holly MI
- Using the Visual Studio 6.0 Driver Build Environment Holt MI
- Using the Visual Studio 6.0 Driver Build Environment Howell MI
- Using the Visual Studio 6.0 Driver Build Environment Hudsonville MI
- Using the Visual Studio 6.0 Driver Build Environment Inkster MI
- Using the Visual Studio 6.0 Driver Build Environment Ionia MI
- Using the Visual Studio 6.0 Driver Build Environment Jackson MI
- Using the Visual Studio 6.0 Driver Build Environment Jenison MI
- Using the Visual Studio 6.0 Driver Build Environment Kalamazoo MI
- Using the Visual Studio 6.0 Driver Build Environment Lake Orion MI
- Using the Visual Studio 6.0 Driver Build Environment Lansing MI
- Using the Visual Studio 6.0 Driver Build Environment Lapeer MI
- Using the Visual Studio 6.0 Driver Build Environment Lincoln Park MI
- Using the Visual Studio 6.0 Driver Build Environment Livonia MI
- Using the Visual Studio 6.0 Driver Build Environment Ludington MI
- Using the Visual Studio 6.0 Driver Build Environment Macomb MI
- Using the Visual Studio 6.0 Driver Build Environment Marquette MI
- Using the Visual Studio 6.0 Driver Build Environment Midland MI
- Using the Visual Studio 6.0 Driver Build Environment Monroe MI
- Using the Visual Studio 6.0 Driver Build Environment Mount Clemens MI
- Using the Visual Studio 6.0 Driver Build Environment Mount Morris MI
- Using the Visual Studio 6.0 Driver Build Environment Mount Pleasant MI
- Using the Visual Studio 6.0 Driver Build Environment Muskegon MI
- Using the Visual Studio 6.0 Driver Build Environment New Baltimore MI
- Using the Visual Studio 6.0 Driver Build Environment Niles MI
- Using the Visual Studio 6.0 Driver Build Environment Northville MI
- Using the Visual Studio 6.0 Driver Build Environment Novi MI
- Using the Visual Studio 6.0 Driver Build Environment Oak Park MI
- Using the Visual Studio 6.0 Driver Build Environment Okemos MI
- Using the Visual Studio 6.0 Driver Build Environment Owosso MI
- Using the Visual Studio 6.0 Driver Build Environment Petoskey MI
- Using the Visual Studio 6.0 Driver Build Environment Pinckney MI
- Using the Visual Studio 6.0 Driver Build Environment Plymouth MI
- Using the Visual Studio 6.0 Driver Build Environment Pontiac MI
- Using the Visual Studio 6.0 Driver Build Environment Port Huron MI
- Using the Visual Studio 6.0 Driver Build Environment Portage MI
- Using the Visual Studio 6.0 Driver Build Environment Redford MI
- Using the Visual Studio 6.0 Driver Build Environment Rochester MI
- Using the Visual Studio 6.0 Driver Build Environment Rockford MI
- Using the Visual Studio 6.0 Driver Build Environment Romulus MI
- Using the Visual Studio 6.0 Driver Build Environment Roseville MI
- Using the Visual Studio 6.0 Driver Build Environment Royal Oak MI
- Using the Visual Studio 6.0 Driver Build Environment Saginaw MI
- Using the Visual Studio 6.0 Driver Build Environment Saint Clair Shores MI
- Using the Visual Studio 6.0 Driver Build Environment Saint Johns MI
- Using the Visual Studio 6.0 Driver Build Environment Saline MI
- Using the Visual Studio 6.0 Driver Build Environment Sault Sainte Marie MI
- Using the Visual Studio 6.0 Driver Build Environment South Haven MI
- Using the Visual Studio 6.0 Driver Build Environment South Lyon MI
- Using the Visual Studio 6.0 Driver Build Environment Southfield MI
- Using the Visual Studio 6.0 Driver Build Environment Southgate MI
- Using the Visual Studio 6.0 Driver Build Environment Sterling Heights MI
- Using the Visual Studio 6.0 Driver Build Environment Sturgis MI
- Using the Visual Studio 6.0 Driver Build Environment Swartz Creek MI
- Using the Visual Studio 6.0 Driver Build Environment Taylor MI
- Using the Visual Studio 6.0 Driver Build Environment Temperance MI
- Using the Visual Studio 6.0 Driver Build Environment Three Rivers MI
- Using the Visual Studio 6.0 Driver Build Environment Traverse City MI
- Using the Visual Studio 6.0 Driver Build Environment Trenton MI
- Using the Visual Studio 6.0 Driver Build Environment Troy MI
- Using the Visual Studio 6.0 Driver Build Environment Utica MI
- Using the Visual Studio 6.0 Driver Build Environment Walled Lake MI
- Using the Visual Studio 6.0 Driver Build Environment Warren MI
- Using the Visual Studio 6.0 Driver Build Environment Waterford MI
- Using the Visual Studio 6.0 Driver Build Environment West Bloomfield MI
- Using the Visual Studio 6.0 Driver Build Environment Westland MI
- Using the Visual Studio 6.0 Driver Build Environment White Lake MI
- Using the Visual Studio 6.0 Driver Build Environment Wixom MI
- Using the Visual Studio 6.0 Driver Build Environment Wyandotte MI
- Using the Visual Studio 6.0 Driver Build Environment Wyoming MI
- Using the Visual Studio 6.0 Driver Build Environment Ypsilanti MI
- Using the Visual Studio 6.0 Driver Build Environment Zeeland MI
Related Local Events
Real-Time & Embedded Computing Conference-Detroit (RTECC)
Dates: 9/17/2009 - 9/17/2009
Location: Sterling Inn Banquet & Conference Center, Detroit
Sterling Heights, MI
View Details

A&WMA CONFERENCE & EXHIBITION
Dates: 6/16/2009 - 6/19/2009
Location: Marriott Hotel Detroit, Detroit
Detroit, MI
View Details

Rss   Delicious   Digg   Add To My Yahoo   Add To My Google   Bookmark   Search Plugin

Topics:
Architecture & Design Languages & Tools Project Management Web Services
Database Microsoft & .NET Security Wireless
Java Open Source Techniques XML