阅读:3426回复:10
学驱动遇到的第一个问题?
我用driverwork建了一个驱动程序,在vc编译过程中没找到头文件,
vdw.h,不知道怎么回事?请指教!!谢谢!! |
|
最新喜欢:tigead... |
沙发#
发布于:2001-04-05 15:29
这就是你遇到的问题?为什麽不用“查找”--》“文件或文件夹”找一找?
|
|
|
板凳#
发布于:2001-04-06 09:07
前问题已解决,又出来一大堆问题:
C:\NTDDK\INC\DDK\ntddk.h(370) : error C2061: syntax error : identifier 'PULONG_PTR' C:\NTDDK\INC\DDK\ntddk.h(371) : error C2059: syntax error : '}' C:\NTDDK\INC\DDK\ntddk.h(824) : error C2061: syntax error : identifier 'KSPIN_LOCK' C:\NTDDK\INC\DDK\ntddk.h(824) : error C2059: syntax error : ';' C:\NTDDK\INC\DDK\ntddk.h(825) : error C2143: syntax error : missing '{' before '*' C:\NTDDK\INC\DDK\ntddk.h(3654) : error C2061: syntax error : identifier 'ULONG_PTR' C:\NTDDK\INC\DDK\ntddk.h(3655) : error C2059: syntax error : '}' C:\NTDDK\INC\DDK\ntddk.h(3673) : error C2146: syntax error : missing ')' before identifier 'IoStatusBlock' C:\NTDDK\INC\DDK\ntddk.h(3673) : error C2081: 'PIO_STATUS_BLOCK' : name in formal parameter list illegal C:\NTDDK\INC\DDK\ntddk.h(3673) : error C2061: syntax error : identifier 'IoStatusBlock' C:\NTDDK\INC\DDK\ntddk.h(3673) : error C2059: syntax error : ';' C:\NTDDK\INC\DDK\ntddk.h(3673) : error C2059: syntax error : ',' C:\NTDDK\INC\DDK\ntddk.h(3675) : error C2059: syntax error : ')' C:\NTDDK\INC\DDK\ntddk.h(4408) : error C2061: syntax error : identifier 'ULONG_PTR' C:\NTDDK\INC\DDK\ntddk.h(4410) : error C2061: syntax error : identifier 'UniqueProcessId' C:\NTDDK\INC\DDK\ntddk.h(4410) : error C2059: syntax error : ';' C:\NTDDK\INC\DDK\ntddk.h(4411) : error C2061: syntax error : identifier 'InheritedFromUniqueProcessId' C:\NTDDK\INC\DDK\ntddk.h(4411) : error C2059: syntax error : ';' C:\NTDDK\INC\DDK\ntddk.h(4412) : error C2059: syntax error : '}' C:\NTDDK\INC\DDK\ntddk.h(4413) : error C2143: syntax error : missing '{' before '*' C:\NTDDK\INC\DDK\ntddk.h(5178) : error C2146: syntax error : missing ')' before identifier 'Lock' C:\NTDDK\INC\DDK\ntddk.h(5178) : error C2081: 'PKSPIN_LOCK' : name in formal parameter list illegal C:\NTDDK\INC\DDK\ntddk.h(5178) : error C2061: syntax error : identifier 'Lock' C:\NTDDK\INC\DDK\ntddk.h(5178) : error C2059: syntax error : ';' C:\NTDDK\INC\DDK\ntddk.h(5179) : error C2059: syntax error : ')' C:\NTDDK\INC\DDK\ntddk.h(9071) : error C2061: syntax error : identifier 'ULONG_PTR' C:\NTDDK\INC\DDK\ntddk.h(9072) : error C2059: syntax error : '}' C:\NTDDK\INC\DDK\ntddk.h(9074) : error C2143: syntax error : missing '{' before '*' C:\NTDDK\INC\DDK\ntddk.h(9100) : error C2061: syntax error : identifier 'PEXCEPTION_RECORD' C:\NTDDK\INC\DDK\ntddk.h(9102) : error C2059: syntax error : '}' C:\NTDDK\INC\DDK\ntddk.h(9248) : error C2061: syntax error : identifier 'KSPIN_LOCK' C:\NTDDK\INC\DDK\ntddk.h(9250) : error C2059: syntax error : '}' C:\NTDDK\INC\DDK\ntddk.h(9319) : error C2146: syntax error : missing ')' before identifier 'Dpc' C:\NTDDK\INC\DDK\ntddk.h(9319) : error C2061: syntax error : identifier 'Dpc' C:\NTDDK\INC\DDK\ntddk.h(9319) : error C2059: syntax error : ';' C:\NTDDK\INC\DDK\ntddk.h(9319) : error C2059: syntax error : ',' C:\NTDDK\INC\DDK\ntddk.h(9322) : error C2059: syntax error : ')' C:\NTDDK\INC\DDK\ntddk.h(9327) : error C2146: syntax error : missing ')' before identifier 'Dpc' C:\NTDDK\INC\DDK\ntddk.h(9327) : error C2061: syntax error : identifier 'Dpc' C:\NTDDK\INC\DDK\ntddk.h(9327) : error C2059: syntax error : ';' C:\NTDDK\INC\DDK\ntddk.h(9327) : error C2059: syntax error : ',' C:\NTDDK\INC\DDK\ntddk.h(9330) : error C2059: syntax error : ')' C:\NTDDK\INC\DDK\ntddk.h(9335) : error C2146: syntax error : missing ')' before identifier 'Dpc' C:\NTDDK\INC\DDK\ntddk.h(9335) : error C2061: syntax error : identifier 'Dpc' C:\NTDDK\INC\DDK\ntddk.h(9335) : error C2059: syntax error : ';' C:\NTDDK\INC\DDK\ntddk.h(9336) : error C2059: syntax error : ')' C:\NTDDK\INC\DDK\ntddk.h(9343) : error C2146: syntax error : missing ')' before identifier 'Dpc' C:\NTDDK\INC\DDK\ntddk.h(9343) : error C2061: syntax error : identifier 'Dpc' C:\NTDDK\INC\DDK\ntddk.h(9343) : error C2059: syntax error : ';' C:\NTDDK\INC\DDK\ntddk.h(9343) : error C2059: syntax error : ',' C:\NTDDK\INC\DDK\ntddk.h(9345) : error C2059: syntax error : ')' C:\NTDDK\INC\DDK\ntddk.h(9350) : error C2146: syntax error : missing ')' before identifier 'Dpc' C:\NTDDK\INC\DDK\ntddk.h(9350) : error C2061: syntax error : identifier 'Dpc' C:\NTDDK\INC\DDK\ntddk.h(9350) : error C2059: syntax error : ';' C:\NTDDK\INC\DDK\ntddk.h(9350) : error C2059: syntax error : ',' C:\NTDDK\INC\DDK\ntddk.h(9352) : error C2059: syntax error : ')' C:\NTDDK\INC\DDK\ntddk.h(9362) : error C2146: syntax error : missing ')' before identifier 'DeviceQueue' C:\NTDDK\INC\DDK\ntddk.h(9362) : error C2061: syntax error : identifier 'DeviceQueue' C:\NTDDK\INC\DDK\ntddk.h(9362) : error C2059: syntax error : ';' C:\NTDDK\INC\DDK\ntddk.h(9363) : error C2059: syntax error : ')' C:\NTDDK\INC\DDK\ntddk.h(9368) : error C2146: syntax error : missing ')' before identifier 'DeviceQueue' C:\NTDDK\INC\DDK\ntddk.h(9368) : error C2061: syntax error : identifier 'DeviceQueue' C:\NTDDK\INC\DDK\ntddk.h(9368) : error C2059: syntax error : ';' C:\NTDDK\INC\DDK\ntddk.h(9368) : error C2059: syntax error : ',' C:\NTDDK\INC\DDK\ntddk.h(9370) : error C2059: syntax error : ')' C:\NTDDK\INC\DDK\ntddk.h(9375) : error C2146: syntax error : missing ')' before identifier 'DeviceQueue' C:\NTDDK\INC\DDK\ntddk.h(9375) : error C2061: syntax error : identifier 'DeviceQueue' C:\NTDDK\INC\DDK\ntddk.h(9375) : error C2059: syntax error : ';' C:\NTDDK\INC\DDK\ntddk.h(9375) : error C2059: syntax error : ',' C:\NTDDK\INC\DDK\ntddk.h(9378) : error C2059: syntax error : ')' C:\NTDDK\INC\DDK\ntddk.h(9383) : error C2146: syntax error : missing ')' before identifier 'DeviceQueue' C:\NTDDK\INC\DDK\ntddk.h(9383) : error C2061: syntax error : identifier 'DeviceQueue' C:\NTDDK\INC\DDK\ntddk.h(9383) : error C2059: syntax error : ';' C:\NTDDK\INC\DDK\ntddk.h(9384) : error C2059: syntax error : ')' C:\NTDDK\INC\DDK\ntddk.h(9389) : error C2146: syntax error : missing ')' before identifier 'DeviceQueue' C:\NTDDK\INC\DDK\ntddk.h(9389) : error C2061: syntax error : identifier 'DeviceQueue' C:\NTDDK\INC\DDK\ntddk.h(9389) : error C2059: syntax error : ';' C:\NTDDK\INC\DDK\ntddk.h(9389) : error C2059: syntax error : ',' C:\NTDDK\INC\DDK\ntddk.h(9391) : error C2059: syntax error : ')' C:\NTDDK\INC\DDK\ntddk.h(9396) : error C2146: syntax error : missing ')' before identifier 'DeviceQueue' C:\NTDDK\INC\DDK\ntddk.h(9396) : error C2061: syntax error : identifier 'DeviceQueue' C:\NTDDK\INC\DDK\ntddk.h(9396) : error C2059: syntax error : ';' C:\NTDDK\INC\DDK\ntddk.h(9396) : error C2059: syntax error : ',' C:\NTDDK\INC\DDK\ntddk.h(9398) : error C2059: syntax error : ')' C:\NTDDK\INC\DDK\ntddk.h(9653) : error C2146: syntax error : missing ')' before identifier 'Dpc' C:\NTDDK\INC\DDK\ntddk.h(9653) : error C2081: 'PKDPC' : name in formal parameter list illegal C:\NTDDK\INC\DDK\ntddk.h(9653) : error C2061: syntax error : identifier 'Dpc' C:\NTDDK\INC\DDK\ntddk.h(9653) : error C2059: syntax error : ';' C:\NTDDK\INC\DDK\ntddk.h(9654) : error C2059: syntax error : ')' C:\NTDDK\INC\DDK\ntddk.h(9662) : error C2146: syntax error : missing ')' before identifier 'Dpc' C:\NTDDK\INC\DDK\ntddk.h(9662) : error C2081: 'PKDPC' : name in formal parameter list illegal C:\NTDDK\INC\DDK\ntddk.h(9662) : error C2061: syntax error : identifier 'Dpc' C:\NTDDK\INC\DDK\ntddk.h(9662) : error C2059: syntax error : ';' C:\NTDDK\INC\DDK\ntddk.h(9663) : error C2059: syntax error : ')' C:\NTDDK\INC\DDK\ntddk.h(9715) : error C2146: syntax error : missing ')' before identifier 'SpinLock' C:\NTDDK\INC\DDK\ntddk.h(9715) : error C2061: syntax error : identifier 'SpinLock' C:\NTDDK\INC\DDK\ntddk.h(9715) : error C2059: syntax error : ';' C:\NTDDK\INC\DDK\ntddk.h(9716) : error C2059: syntax error : ')' C:\NTDDK\INC\DDK\ntddk.h(9724) : error C2146: syntax error : missing ')' before identifier 'SpinLock' C:\NTDDK\INC\DDK\ntddk.h(9724) : error C2061: syntax error : identifier 'SpinLock' C:\NTDDK\INC\DDK\ntddk.h(9724) : error C2059: syntax error : ';' C:\NTDDK\INC\DDK\ntddk.h(9724) : fatal error C1003: error count exceeds 100; stopping compilation Error executing cl.exe. AAA.sys - 102 error(s), 0 warning(s) 这可是win2k里面的头文件啊,竟然出错,怪!!怎么办? |
|
地板#
发布于:2001-04-06 14:20
You should start your VC IDE from Start->Numega Studio->Tools->Setup DDK and start MSVC.
|
|
|
地下室#
发布于:2001-04-06 19:27
在说明文件USING DRIVERWORKS 的第一章有详细的说明!
|
|
|
5楼#
发布于:2001-08-03 12:47
你的VC环境没有配置好,需要把DriverWorks的Include目录和
Lib目录包含在VC的收索路径中 |
|
|
6楼#
发布于:2001-08-03 13:01
还要设DDK路径和CUP变量 |
|
|
7楼#
发布于:2001-08-04 00:05
DriverWorks一定要有DDK支持吗?
|
|
|
8楼#
发布于:2001-08-04 13:00
I think so~~ but i don't whether it's true |
|
|
9楼#
发布于:2001-08-07 12:17
Re: 学驱动遇到的第一个问题?
你的VC环境没有配置好,需要把DriverWorks的Include目录和 Lib目录包含在VC的收索路径中 -------------------------------------------------------------------------------- 问的问题很傻,请不要笑话我! 回答的不好,还请多多包涵! 请问具体如何操作??? thank very much!!! |
|
10楼#
发布于:2001-08-07 15:36
[QUOTE]原本由 winter 发表
[B]DriverWorks一定要有DDK支持吗? [/B][/QUOTE] 可能不用,我的同事用VC6+Vtools 就没用DDK |
|
|