阅读:907回复:0
请教 一个初级问题
#define CHARSAMPLE_IOCTL_800 CTL_CODE(FILE_DEVICE_UNKNOWN, 0x800, METHOD_BUFFERED, FILE_ANY_ACCESS)
在编译时出现: est_CharSample.cpp E:\\cj\\WDM\\WAHBOOK\\Win2000\\CharSample\\exe\\Test_CharSample.cpp(63) : error C2065: \'CTL_CODE\' : undeclared identifier E:\\cj\\WDM\\WAHBOOK\\Win2000\\CharSample\\exe\\Test_CharSample.cpp(63) : error C2065: \'FILE_DEVICE_UNKNOWN\' : undeclared identifier E:\\cj\\WDM\\WAHBOOK\\Win2000\\CharSample\\exe\\Test_CharSample.cpp(63) : error C2065: \'METHOD_BUFFERED\' : undeclared identifier E:\\cj\\WDM\\WAHBOOK\\Win2000\\CharSample\\exe\\Test_CharSample.cpp(63) : error C2065: \'FILE_ANY_ACCESS\' : undeclared identifier Error executing cl.exe. 请问各位大虾,CTL_CODE 这不是window定义的宏吗,为什么说没定义呢?? 我在加入 #include <winioctl.h> 这个时提示: icrosoft (R) Incremental Linker Version 6.00.8168 Copyright (C) Microsoft Corp 1992-1998. All rights reserved. LINK : fatal error LNK1146: no argument specified with option \"/libpath:\" Error executing link.exe. Creating browse info file... Test_CharSample.exe - 1 error(s), 0 warning(s) The following environment variables were not found $(TARGET_LIB_PATH) 我是才开始学驱动的,请大家帮帮忙,先谢了 |
|