zbj
zbj
驱动牛犊
驱动牛犊
  • 注册日期2001-06-24
  • 最后登录
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:2830回复:5

怎么driverworks下的例子程序不能运行?

楼主#
更多 发布于:2001-07-17 21:16
请教各位:
   我准备采用PDIUSB12D做一个简单数据采集系统,用AT89C52控制。驱动软件采用driverworks编写。但是不知道怎么回事:我首先build the libraries before using DriverWorks。然后在vc++6.0 环境下buid hellowdm这个例程。 就是通不过,说什么invalid numeric argument '/Wp64'我真的不知道是怎么回事?
   救救我。
rayyang2000
管理员
管理员
  • 注册日期2001-03-23
  • 最后登录2012-09-13
  • 粉丝3
  • 关注0
  • 积分1036分
  • 威望925点
  • 贡献值3点
  • 好评度823点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2001-07-18 10:05
你是怎么安装的?
天天coding-debugging中----超稀饭memory dump file ======================================================== [b]Windows Device Driver Development and Consulting Service[/b] [color=blue][url]http://www.ybwork.com[/url][/color] ========================================================
zbj
zbj
驱动牛犊
驱动牛犊
  • 注册日期2001-06-24
  • 最后登录
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2001-07-18 19:28
斑竹及各位大虾:
  我是刚刚开始学习采用driverworks开发USB驱动程序的,谢谢大家多多的给我一些指点。我是首先安装Microsoft VC++6.0,然后再安装Win98 DDK,再安装driver studio,安装完后,setup ddk and run msev(设置环境变量),进入Microsoft VC++6.0后,找到riverworks下source目录中的VdwLibs.dsw进行编译。也就是build the libaries before using riverWorks。在build the libraries的时候,我不知道是不是全都要build???有什么要注意的没有?我不知道是不是所有的批构件都要全部重新重建?这之后,我选择了\driverworks\eamples\wdm\usbbulk这个例子在Microsoft VC++6.0下进行编译,问题如下:
Configuration: usbbulk - Win32 IA64 Free--------------------
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\vdw.h(76): Could not find the file wdm.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\vdw.h(95): Could not find the file ntddk.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\vdw.h(183): Could not find the file vtoolscp.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\vdw.h(184): Could not find the file vxdntlib.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\kusb.h(30): Could not find the file usbdi.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\kusb.h(31): Could not find the file usbdlib.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\kndisvdw.h(42): Could not find the file kndiscpp.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\kndisvdw.h(70): Could not find the file ndis.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\kndisvdw.h(71): Could not find the file KNdisSpinLock.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\kndisvdw.h(73): Could not find the file KNdisList.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\k1394.h(31): Could not find the file 1394.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\kwmi.h(35): Could not find the file wmistr.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\vdw.h(76): Could not find the file wdm.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\vdw.h(95): Could not find the file ntddk.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\vdw.h(183): Could not find the file vtoolscp.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\vdw.h(184): Could not find the file vxdntlib.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\kusb.h(30): Could not find the file usbdi.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\kusb.h(31): Could not find the file usbdlib.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\kndisvdw.h(42): Could not find the file kndiscpp.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\kndisvdw.h(70): Could not find the file ndis.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\kndisvdw.h(71): Could not find the file KNdisSpinLock.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\kndisvdw.h(73): Could not find the file KNdisList.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\k1394.h(31): Could not find the file 1394.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\kwmi.h(35): Could not find the file wmistr.h.
Compiling...
Command line error D2021 : invalid numeric argument '/Wp64'
Error executing cl.exe.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\vdw.h(76): Could not find the file wdm.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\vdw.h(95): Could not find the file ntddk.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\vdw.h(183): Could not find the file vtoolscp.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\vdw.h(184): Could not find the file vxdntlib.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\kusb.h(30): Could not find the file usbdi.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\kusb.h(31): Could not find the file usbdlib.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\kndisvdw.h(42): Could not find the file kndiscpp.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\kndisvdw.h(70): Could not find the file ndis.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\kndisvdw.h(71): Could not find the file KNdisSpinLock.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\kndisvdw.h(73): Could not find the file KNdisList.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\k1394.h(31): Could not find the file 1394.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\kwmi.h(35): Could not find the file wmistr.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\vdw.h(76): Could not find the file wdm.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\vdw.h(95): Could not find the file ntddk.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\vdw.h(183): Could not find the file vtoolscp.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\vdw.h(184): Could not find the file vxdntlib.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\kusb.h(30): Could not find the file usbdi.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\kusb.h(31): Could not find the file usbdlib.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\kndisvdw.h(42): Could not find the file kndiscpp.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\kndisvdw.h(70): Could not find the file ndis.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\kndisvdw.h(71): Could not find the file KNdisSpinLock.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\kndisvdw.h(73): Could not find the file KNdisList.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\k1394.h(31): Could not find the file 1394.h.
C:\PROGRA~1\NUMEGA\DRIVER~1\DRIVER~3\include\kwmi.h(35): Could not find the file wmistr.h.

usbBulk.sys - 1 error(s), 0 warning(s)


我不知道该怎么办?我不是很有经验。
   谢谢你的指点!
rayyang2000
管理员
管理员
  • 注册日期2001-03-23
  • 最后登录2012-09-13
  • 粉丝3
  • 关注0
  • 积分1036分
  • 威望925点
  • 贡献值3点
  • 好评度823点
  • 原创分0分
  • 专家分0分
地板#
发布于:2001-07-19 09:48
好像是ddk的路径没有设置.
天天coding-debugging中----超稀饭memory dump file ======================================================== [b]Windows Device Driver Development and Consulting Service[/b] [color=blue][url]http://www.ybwork.com[/url][/color] ========================================================
zbj
zbj
驱动牛犊
驱动牛犊
  • 注册日期2001-06-24
  • 最后登录
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
地下室#
发布于:2001-07-19 11:21
回斑竹:
   在VC++6。0下我已经设置win98ddk的路径了??
  奇怪!!!!!!!

help me!
rayyang2000
管理员
管理员
  • 注册日期2001-03-23
  • 最后登录2012-09-13
  • 粉丝3
  • 关注0
  • 积分1036分
  • 威望925点
  • 贡献值3点
  • 好评度823点
  • 原创分0分
  • 专家分0分
5楼#
发布于:2001-07-19 14:00
什么叫"在vc6下设定DDK路径"?
你看看wdm.h在你设定的路径下面吗?
还有,用"Setup DDK and Start MSVC"的时候,你看看这个快捷方式执行的结果,是否执行了DDK\bin\setenv.bat
BTW:这个错误和DriverStudio或DDK应该没有关系,如果写普通的app,某个.h不在编译器知道的路径下,也会有这样的错误啊!
天天coding-debugging中----超稀饭memory dump file ======================================================== [b]Windows Device Driver Development and Consulting Service[/b] [color=blue][url]http://www.ybwork.com[/url][/color] ========================================================
游客

返回顶部