阅读:1412回复:2
error C2065: 'KSDEVICE' : undeclared identifier??
VC6 + Win2kDDk + DriverStudio3.1,直接编译DriverWorks里面的例子:
C:\Program Files\Compuware\DriverStudio\DriverWorks\Examples\wdm\avstream\vcap 出现以下错误: C:\PROGRA~1\Compuware\DriverStudio\DriverWorks\include\.\avstream\KsObject.h(48) : error C2065: 'KSDEVICE' : undeclared identifier C:\PROGRA~1\Compuware\DriverStudio\DriverWorks\include\.\avstream\KsObject.h(49) : error C2990: 'KsTypeHelper' : non-template class has already been defined as a template class C:\PROGRA~1\Compuware\DriverStudio\DriverWorks\include\.\avstream\KsObject.h(45) : see declaration of 'KsTypeHelper' C:\PROGRA~1\Compuware\DriverStudio\DriverWorks\include\.\avstream\KsObject.h(53) : error C2065: 'KSFILTERFACTORY' : undeclared identifier C:\PROGRA~1\Compuware\DriverStudio\DriverWorks\include\.\avstream\KsObject.h(54) : error C2990: 'KsTypeHelper' : non-template class has already been defined as a template class C:\PROGRA~1\Compuware\DriverStudio\DriverWorks\include\.\avstream\KsObject.h(45) : see declaration of 'KsTypeHelper' C:\PROGRA~1\Compuware\DriverStudio\DriverWorks\include\.\avstream\KsObject.h(58) : error C2065: 'KSFILTER' : undeclared identifier C:\PROGRA~1\Compuware\DriverStudio\DriverWorks\include\.\avstream\KsObject.h(59) : error C2990: 'KsTypeHelper' : non-template class has already been defined as a template class C:\PROGRA~1\Compuware\DriverStudio\DriverWorks\include\.\avstream\KsObject.h(45) : see declaration of 'KsTypeHelper' C:\PROGRA~1\Compuware\DriverStudio\DriverWorks\include\.\avstream\KsObject.h(63) : error C2065: 'KSPIN' : undeclared identifier 还有很多,类似的错误。 是什么原因? 其他例子都可以编译,就AVStream下面的两个例子不能编译,都是这样的错误,请高手指点! |
|
沙发#
发布于:2008-11-10 18:16
原因似乎是我的win2k ddk里面带的directx版本太低(7.0)??
这个版本的ddk的ks.h里面确实没有KSDEVICE等的定义。 |
|
板凳#
发布于:2008-12-17 17:27
已经解决了
|
|