Pcidler_Beny
驱动牛犊
驱动牛犊
  • 注册日期2003-04-30
  • 最后登录2003-06-20
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1378回复:2

版主求助,很急!~~关于USB驱动的

楼主#
更多 发布于:2003-06-12 12:50
以前曾提请教过你的用DS十分钟开发USB驱动的问题,我的U盘ID已知,The Vendor ID is 0ea0, and the Product ID is 6803
还有PIPE的信息是用WINDRIVER测出来的,如下:
EP           类型     地址     buffer(Bytes)packetsize
0 in&out control       PIPE00     64/64
1 in     bulk          pipe81     64
2 out    bulk          pipe2      64
3 in   interrupt       pipe83     2
那按《十分钟开发USB驱动》一文是可以做出TEST驱动与U盘对应控制灯亮吗?
我就按这个做了一个TEST出来,d在未改LED的程序时(文章最后提到的修改程序部分),编译正常通过。但改过程序后再编译就会有如下错误:
--------------------Configuration: test - Win32 Free--------------------
Compiling resources with DDK resource compiler...
Compiling with DDK compiler...
Test.cpp
TestDevice.cpp
G:\\test\\sys\\TestDevice.cpp(958) : error c2653: \'TESTDevice\' : is not a class or namespace name
G:\\test\\sys\\TestDevice.cpp(974) : error C2065: \'m_Lower\' : undeclared identifier
G:\\test\\sys\\TestDevice.cpp(974) : error C2228: left of \'.BuildVendorRequest\' must have class/struct/union type
G:\\test\\sys\\TestDevice.cpp(983) : error C2228: left of \'.SubmitUrb\' must have class/struct/union type
Error executing cl.exe.

test.sys - 4 error(s), 0 warning(s)
--------------------Configuration: Test_test - Win32 Release--------------------
Compiling with DDK compiler...
OpenByIntf.cpp
Compiling...
Test_test.cpp
Linking with DDK linker...

Test_test.exe - 0 error(s), 0 warning(s)
--------------------Configuration: test - Win32 Checked--------------------
Compiling resources with DDK resource compiler...
Compiling with DDK compiler...
Test.cpp
TestDevice.cpp
G:\\test\\sys\\TestDevice.cpp(958) : error C2653: \'TESTDevice\' : is not a class or namespace name
G:\\test\\sys\\TestDevice.cpp(974) : error C2065: \'m_Lower\' : undeclared identifier
G:\\test\\sys\\TestDevice.cpp(974) : error C2228: left of \'.BuildVendorRequest\' must have class/struct/union type
G:\\test\\sys\\TestDevice.cpp(983) : error C2228: left of \'.SubmitUrb\' must have class/struct/union type
Error executing cl.exe.

test.sys - 4 error(s), 0 warning(s)
--------------------Configuration: Test_test - Win32 Debug--------------------
Compiling with DDK compiler...
OpenByIntf.cpp
Compiling...
Test_test.cpp
Linking with DDK linker...

Test_test.exe - 0 error(s), 0 warning(s)

TEST的SYS里面有的错误,要如何修改啊?急啊,明天就要交报告了!版主打救一下我吧~~~
Pcidler_Beny
驱动牛犊
驱动牛犊
  • 注册日期2003-04-30
  • 最后登录2003-06-20
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2003-06-12 13:42
这种情况在按版主所写文章也是这样出现的~~一但改了LED的控制部分就会出现这种状况,不改源代码是在BUILD不会出问题的!

那请问版主要如何修改才能不会出现下面在TEST。SYS出现的四个错误!
error c2653: \'TESTDevice\' : is not a class or namespace name
\'m_Lower\' : undeclared identifier
left of \'.BuildVendorRequest\' must have class/struct/union type
 left of \'.SubmitUrb\' must have class/struct/union type
rayyang2000
管理员
管理员
  • 注册日期2001-03-23
  • 最后登录2012-09-13
  • 粉丝3
  • 关注0
  • 积分1036分
  • 威望925点
  • 贡献值3点
  • 好评度823点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2003-06-15 09:56
没有遇到过,大概你启动vc的方式有问题。
天天coding-debugging中----超稀饭memory dump file ======================================================== [b]Windows Device Driver Development and Consulting Service[/b] [color=blue][url]http://www.ybwork.com[/url][/color] ========================================================
游客

返回顶部