vs2005 下error C3861: 'GetEventData': identifier not found 解决方法

来源:互联网 发布:美国经济发展历程数据 编辑:程序博客网 时间:2024/05/26 17:44

今天用vs2005写CE下的测试app时,用到GetEventData 和 SetEventData,build时遇到error C3861: 'GetEventData': identifier not found。

查帮助文档发现需要头文件<pkfuncs.h>,果断include<pkfuncs.h>,build。又有错, Cannot open include file: 'pkfuncs.h': No such file or directory,找不到这个头文件,郁闷了,CE6的标准SDK竟然没有这个头文件,无奈之下把BSP下的pkfuncs.h 放进SDK,再build。还有错,Cannot open include file: 'toolhelp.h': No such file or directory,原来pkfuncs.h里还包了toolhelp.h这个头文件,找来找去,没发现哪里有。最后找了组里做Ap的前辈,原来他们之前也都遇到过这个问题。从她哪里拷来了toolhelp.h。再build,哦了。