编译Walter Oney 书中的例子总是出错,高手帮忙啊

yslhust 2003-11-06 05:08:48
编译Walter Oney 书中的例子总是出错,用Build 出现下面信息
The following environment variables were not found
$(DDKPATH)
$(WDMBOOK)
可是在DriverStudio---->DDK Build Settings 中设过了DDK Root Directory


用DriverStudio--->Build with Build.exe 出现下面错误

BUILD: c:\progra~1\micros~3\vc98\include\exdisp.odl(31): c:\progra~1\micros~3\vc98\include\exdisp.odl - invalid include statement: importlib(STDOLE_TLB);
BUILD: c:\progra~1\micros~3\vc98\include\vidsvr.odl(16): c:\progra~1\micros~3\vc98\include\vidsvr.odl - invalid include statement: importlib(STDOLE_TLB);

哪位高手帮小弟看看
...全文
26 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
火焰射手 2003-11-07
  • 打赏
  • 举报
回复
设过了DDK root路径,那个环境变量是DDKROOT,你可以到系统属性里的环境变量里查看DDKPATH和WDMBOOK变量是否存在,不存在的话自己添加一下就可以了。
yslhust 2003-11-07
  • 打赏
  • 举报
回复
谢谢大侠,看过了,果然没有,加上就OK了
2nd version, cdrom(source code) Programming the Microsoft Windows Driver Model, Second Edition Microsoft Press | ISBN: 0735618038 | 800 pages | December 31, 2002 | CHM | 2 Mb Written for advanced C/C++ programmers, Walter Oney's Programming the Microsoft Windows Driver Model is a technically astute and clearly presented guide to writing custom Windows 2000 device drivers. The author's command of the details of the new Windows Driver Model (WDM) standard is what makes this book such a clear success. (Because the WDM is rich in kernel and system services, the trick is often knowing how to use what's available rather than doing everything yourself.) The author presents a solid overview of the WDM architecture and breaks down the process of read.freeduan.com writing custom device drivers into manageable pieces, from the basics of loading device drivers to creating and processing I/O request packets. The book is very good at exposing kernel system calls, design principles, and programming techniques (such as managing synchronization and handling errors). There are also "nerd alerts" that point out extremely technical material. This book shows you what you'll need to create WDM drivers that cooperate fully with Windows 2000 (and Windows 98). Features like Plug and Play (PnP), Windows power management, and the new Windows Management Instrumentation (WDM) standard get full attention here. There is plenty of freeduan.com sample code (plus a custom Visual C++ AppWizard that generates skeleton code for a default WDM driver) to get you started. Examples for working with the S5933 PCI chip set (and other simple hardware) let you see WDM drivers in action. The process of writing device drivers certainly has changed from the early days of DOS. But armed with this handy and thorough book, C/C++ programmers can successfully create drivers for custom hardware that take full advantage of all the features of the powerful new WDM standard.

21,600

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 驱动开发/核心开发
社区管理员
  • 驱动开发/核心开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧