Visual c ++ device driver development environment settings

Source: Internet
Author: User

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

 

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.