阅读:2288回复:0
驱动程序加载问题,集思广益
小弟最近在做一个32位系统向64位移植的项目,系统驱动已经编译通过,可是拿到64位环境时加载失败,提示:System error 2: The system cannot find the file specified.
我的调试机是Windows XP Pro x64 Edition,开发机是Windows XP SP2,32位的,使用的工具是VC++ 2005 + WIN Server 2003 ddk,先把编译选项列出来: /Od /Oi /I ".." /I "../.." /I "../inc" /I "C:\WINDDK\3790.1830\inc\wnet" /I "C:\WINDDK\3790.1830\inc\ddk\wnet" /I "C:\WINDDK\3790.1830\inc\ddk\wdm\wnet" /I "C:\WINDDK\3790.1830\private\inc" /I "../../OWF_TCK" /D "WIN64" /D "_AMD64_" /D "CONDITION_HANDLING=1" /D "WIN32=100" /D "_WIN32_WINNT=0x0502" /D "WINVER=0x0502" /D "_WIN32_IE=0x0501" /D "WIN32_LEAN_AND_MEAN=1" /D "DBG=1" /D "NDEBUG" /D "_DLL=1" /D "_CRT_SECURE_NO_DEPRECATE" /D "_VC80_UPGRADE=0x0600" /D "_WINDLL" /GF /FD /MT /GS- /Gy /Fp".\../../bin/Debug/enfs2k/enfs2k.pch" /Fo".\../../bin/Debug/enfs2k/" /Fd".\../../bin/Debug/enfs2k/" /W4 /nologo /c /Wp64 /Z7 /Gz /FI "C:\WINDDK\3790.1830\inc\wnet\warning.h" /U "_X86_" /Zl /errorReport:prompt 然后是链接选项: /Od /Oi /I ".." /I "../.." /I "../inc" /I "C:\WINDDK\3790.1830\inc\wnet" /I "C:\WINDDK\3790.1830\inc\ddk\wnet" /I "C:\WINDDK\3790.1830\inc\ddk\wdm\wnet" /I "C:\WINDDK\3790.1830\private\inc" /I "../../OWF_TCK" /D "WIN64" /D "_AMD64_" /D "CONDITION_HANDLING=1" /D "WIN32=100" /D "_WIN32_WINNT=0x0502" /D "WINVER=0x0502" /D "_WIN32_IE=0x0501" /D "WIN32_LEAN_AND_MEAN=1" /D "DBG=1" /D "NDEBUG" /D "_DLL=1" /D "_CRT_SECURE_NO_DEPRECATE" /D "_VC80_UPGRADE=0x0600" /D "_WINDLL" /GF /FD /MT /GS- /Gy /Fp".\../../bin/Debug/enfs2k/enfs2k.pch" /Fo".\../../bin/Debug/enfs2k/" /Fd".\../../bin/Debug/enfs2k/" /W4 /nologo /c /Wp64 /Z7 /Gz /FI "C:\WINDDK\3790.1830\inc\wnet\warning.h" /U "_X86_" /Zl /errorReport:prompt 请各位给指点指点 |
|