阅读:929回复:0
DriverSuite下串口例子加上TDI功能的问题!太怪啦!
我想在例子serial程序中加上访问SOCKET的功能,就是从串口收到数据后发送给一个SOCKET,我在VC的SETTING中加上了TDI所要的环境。然后写了个类(从KStreamSocket继承的),在class SerialDevice中访问,但是编译时编不过克,错误如下:
error C2629: unexpected \'class SharedInterrupt (\' E:\\drivertest\\serial\\shareint.h(48) : error C2238: unexpected token(s) preceding \';\' E:\\drivertest\\serial\\shareint.h(56) : error C2143: syntax error : missing \';\' before \'*\' E:\\drivertest\\serial\\shareint.h(56) : error C2501: \'KNdisInterrupt\' : missing storage-class or type specifiers E:\\drivertest\\serial\\shareint.h(56) : error C2501: \'m_Interrupt\' : missing storage-class or type specifiers E:\\drivertest\\serial\\shareint.h(69) : error C2065: \'KNdisInterrupt\' : undeclared identifier E:\\drivertest\\serial\\shareint.h(69) : error C2065: \'pIntr\' : undeclared identifier E:\\drivertest\\serial\\shareint.h(69) : error C2448: \'<Unknown>\' : function-style initializer appears to be a function definition 哪位高手帮忙! |
|