| 
					阅读:1216回复:10
				 98与2000
					在2000下写的WDM驱动放到98下编译,有头个文件找不到,原来98下没有。能不能直接把2000的拿来用?
 另外我的vc配置环境又不对了。 setting 中这样设的对吗? MakeDrvr d:\\98ddk E: 98drv\\modidrv\\portsdrv checked ddk在D:\\98ddk中,我的程序在e:\\98drv\\modidrv\\portsdrv中。 当然include 之类的已经设定路径了。 还有什么地方没有设的? | |
| 
 | 
| 沙发#发布于:2002-08-01 18:03 用户被禁言,该主题自动屏蔽! | |
| 板凳#发布于:2002-08-02 09:29 
					我在98的AUTOEXEC.BAT中设定SET DDKROOT = D:\\98DDK
 然后其他和2000下相同,编译文件时出现Out of environment space。 怎么回事? 因该怎么设呢? | |
| 
 | 
| 地板#发布于:2002-08-02 10:05 
					加shell = c:\\windows\\command.com /p /e:1024 or 2048
 98下没有,说明很可能98下不可以用这个函数,不要用2K的。 | |
| 地下室#发布于:2002-08-02 10:18 
					我曾经帮cryan在98下编译wdm,也是有些函数98ddk没有,最后在98下装了个2kddk,编译通过,据他说运行的挺好,哈哈。
 当然没有理论根据,试试可以,后果自负 | |
| 
 | 
| 5楼#发布于:2002-08-02 10:29 
					faint,怎么可以这样。
 想害人。 :P | |
| 6楼#发布于:2002-08-02 10:31 
					怎么这么说
 你又没试过怎么知道不可以 | |
| 
 | 
| 7楼#发布于:2002-08-02 11:34 
					可以编译了,但是出了这样的错误。
 Deleting intermediate files and output files for project \'YANSPort - Win32 Checked\'. --------------------Configuration: YANSPort - Win32 Checked-------------------- New or updated MSVC detected. Updating DDK environment.... Bad command or file name Setting environment for using Microsoft Visual C++ tools. Too many parameters Starting dirs creation....Completed. DOSKey installed Bad command or file name Invalid directory BUILD: Compile and Link for i386 BUILD: Computing Include file dependencies: BUILD: d:\\win98vc98\\include\\exdisp.odl(31): d:\\win98vc98\\include\\exdisp.odl - invalid include statement: importlib(STDOLE_TLB); BUILD: d:\\win98vc98\\include\\vidsvr.odl(16): d:\\win98vc98\\include\\vidsvr.odl - invalid include statement: importlib(STDOLE_TLB); BUILD: d:\\win98v~1\\include\\exdisp.odl(31): d:\\win98v~1\\include\\exdisp.odl - invalid include statement: importlib(STDOLE_TLB); BUILD: d:\\win98v~1\\include\\vidsvr.odl(16): d:\\win98v~1\\include\\vidsvr.odl - invalid include statement: importlib(STDOLE_TLB); BUILD: Examining e:\\98drv\\modidrv\\portsdrv directory for files to compile. e:\\98drv\\modidrv\\portsdrv BUILD: e:\\98drv\\modidrv\\portsdrv\\debugprint.c: d:\\98ddk\\inc\\win98\\wdm.h: cannot find include file \"alpharef.h\" BUILD: Unable to save the dependency database: \\nt\\build.dat BUILD: Linking e:\\98drv\\modidrv\\portsdrv directory Compiling - wdm2.rc for i386 Compiling - debugprint.c for i386 Compiling - init.cpp for i386 Compiling - dispatch.cpp for i386 Compiling - pnp.cpp for i386 Compiling - power.cpp for i386 Compiling - deviceio.cpp for i386 Linking Executable - obj\\i386\\checked\\yansport.sys for i386 link() : error LNK1104: cannot open file \"obj\\i386\\checked\\yansport.sys\" BUILD: Done 1 executables built - 1 Errors yansport.sys - 1 error(s), 0 warning(s) | |
| 
 | 
| 8楼#发布于:2002-08-02 11:41 
					手工建立obj\\i386\\checked\\目录试试				 | |
| 
 | 
| 9楼#发布于:2002-08-02 11:41 
					把以前的旧的delete再build				 | |
| 10楼#发布于:2002-08-02 11:42 
					编译成功了嘛,估计是i386目录下没有Checked目录,这是nmake的一个老毛病,见Chris Cant的WDM书.				 | |
| 
 | 
 
							
 
				
 
				
 
				