1. 安装 VS2101 and WDK7.0(DDK);(这是废话^_^)
2. File -> New -> Project -> Visual C++ -> Empty Project
3. 命名你的工程.e.g MyDriver, 然后点击 OK按钮.
4. Build -> Configuration Manager...
5. 在Active solution configuration里选择<New...>,输入名字,比如MyDriver,然后在Copy setting from:选择debug或者是release,随便选一个
6. View -> property manager,然后选择你之前命名的MyDriver | Win32.然后右击选择Add new project property Sheet,然后命名比如dirverProperty,然后点OK按钮.
然后选择新建的dirverProperty并右击选择Properties,设置如下:
7. C\C++ - General - Debug Information Format = Program Database (/Zi)
8. C\C++ - Preprocessor - Preprocessor Definitions = _X86_
_WIN32_WINNT=0x0500 (分2行写)
9. C\C++ - Code Generation - Enable C++ Exceptions = No
10.C\C++ - Code Generation - Basic Runtime Checks = Default
11.C\C++ - Code Generatio
2. File -> New -> Project -> Visual C++ -> Empty Project
3. 命名你的工程.e.g MyDriver, 然后点击 OK按钮.
4. Build -> Configuration Manager...
5. 在Active solution configuration里选择<New...>,输入名字,比如MyDriver,然后在Copy setting from:选择debug或者是release,随便选一个
6. View -> property manager,然后选择你之前命名的MyDriver | Win32.然后右击选择Add new project property Sheet,然后命名比如dirverProperty,然后点OK按钮.
然后选择新建的dirverProperty并右击选择Properties,设置如下:
7. C\C++ - General - Debug Information Format = Program Database (/Zi)
8. C\C++ - Preprocessor - Preprocessor Definitions = _X86_
_WIN32_WINNT=0x0500 (分2行写)
9. C\C++ - Code Generation - Enable C++ Exceptions = No
10.C\C++ - Code Generation - Basic Runtime Checks = Default
11.C\C++ - Code Generatio