VC6 VA來編輯和編譯開發驅動程式

2021-05-28 12:07:43 字數 1428 閱讀 7824

2。tools-->options-->directories-->executable files

加入:c:\winddk\7600.16385.0\bin\x86\x86

編譯驅動的時候將該命令放在最上面;

編譯應用態程式的時候,將該命令放在最下面

3。project-->settings...

[general]

debug info:

program database

preprocessor definitions:

_x86_=1,i386=1,std_call,win32=100,_win32_winnt=0x0501,winver=0x0501,_debug

project options:

去掉gx /yx /pdbtype:sept

mld->mtd

[code generation]

calling convention:

__stdcall

use run-time library

debug multithreaded

[preprocessor]

additional include directories:

c:\winddk\7600.16385.0\inc,

c:\winddk\7600.16385.0\inc\api,

c:\winddk\7600.16385.0\inc\ddk,

c:\winddk\7600.16385.0\inc\crt

[general]

output file name:

name.sys

object/library modules:

ntoskrnl.lib hal.lib usbd.lib wmilib.lib

去掉"link incrementally"的勾

[input]

additional library path:

c:\winddk\7600.16385.0\lib,

c:\winddk\7600.16385.0\lib\crt\i386,

c:\winddk\7600.16385.0\lib\wnet\i386

[output]

entry-point symbol:

driverentry

project options:

/machine:ix86 /driver /subsystem:native /section:init,d

/ignore:4198,4010,4037,4039,4065,4070,4078,4087,4089,4221

刪除如下選項:

/subsystem:windows

其實主要是為了利用va編輯**的方便。編譯64位的程式或者win7等版本,可以直接使用wdk的編譯命令來編譯即可。

使用VC6編譯和使用Ogre引擎

開發網 ogre是開源的封裝了directx和opengl的3d引擎 官方主頁為 安裝 http www.mscto.com 首先解壓縮ogre.rar到你喜歡的目錄 我是放在e ogresdk 然後分別解壓ogrewin32dependencies 0.13.0.zip和dependenciess...

VC6編譯和鏈結的兩個頭疼問題

周海漢 文 為了清空,將debug目錄刪了。結果編譯時出如下錯誤 fatal error c1083 cannot open precompiled header file debug pch no such file or directory 怎麼搞都不行。歸結為同樣問題的錯誤 fatal err...

VC6編譯驅動的方法 含32和64位

vc6只是乙個ide,可以方便的呼叫編譯器,鏈結器,標頭檔案,庫檔案,如果編輯和編譯驅動能整合在一起,這樣可以提高開發效率。對於普通的win32應用程式,vc6已經預設支援了,而對於驅動程式沒有設定好的工程嚮導。其實驅動程式也就是乙個sys,是通過c語言寫成,所以編譯它理論上沒有問題,只是在實際操作...