Visual c ++ device driver development environment settings
In Visual C ++ integrated development environment (IDE), the driver developer can use and set its makefile project so that it can directly compile and connect the eye bag of the device driver. In this case, developers do not need to enter the DDK Command Prompt window to obtain the executable file of the device driver.
Malefile Project
When developing user applications, makefile projects are rarely used. Other Visual C ++ wizards, such as App Wizard, are more convenient to use. However, for some complex work, such as setting up the Compilation Program and Connection Program for creating the driver, you also need to use the makefile project.
When developing a device driver, you can use the makefile project to activate the command line utility: setenv. BAT and build tools to create executable files for the driver. The construction process is exactly the same as that in the prompt window of the DDK command. He also needs to use configuration files such as sources, makefile, and dirs, instead of integrating the DDK into visual C ++. The advantage of this is that Microsoft can work normally even if it changes the compilation or connection requirements of the driver. The disadvantage is that the combination of the two principles is not compact enough, such as browsing the driver source code, adding or deleting files from a project, and other operations are not convenient enough.
1. Preparations
Before using the makefile project, you should first set some options of Visual C ++ to meet the actual and development needs of the device driver. The processing steps are as follows:
① Add the bin sub-directory of DDK to the executable file directory list of Visual C ++. By selecting the "tools/options" menu in Visual C ++, go to the "directories" tab, and select "executable files" in the "show directories for:" combo box ", then add the bin directory of the DDK (such as C/98ddk/bin.
Add the executable file list:
In the wndows 98 driver development environment: Tools-> options-> directories --- à (Executable File) add
C:/98ddk/bin
In the wndows 2000 driver development environment: Tools-> options-> directories --- à (Executable File) add
C:/ntddk/bin
In the wndows XP driver development environment: Tools-> options-> directories --- à (Executable File)
Add