谁看过《windows核心编程》这本书,里面的例子怎么调试不通?在线等
主要是CmnHdr.h这个文件
编译时会提示:
You are not using the latest Platform SDK header/library
files. This may prevent the project from building correctly.
里面有这样一段宏定义:
#ifndef WT_EXECUTEINPERSISTENTIOTHREAD
#pragma message("You are not using the latest Platform SDK header/library ")
#pragma message("files. This may prevent the project from building correctly.")
#endif
请问WT_EXECUTEINPERSISTENTIOTHREAD 是什么?
下面是编译第一个例子时的错误信息:
Compiling resources...
Compiling...
ErrorShow.cpp
You are not using the latest Platform SDK header/library
files. This may prevent the project from building correctly.
c:\documents and settings\administrator\桌面\windows核心编程\cmnhdr.h(212) : error C2065: 'GetWindowLongPtr' : undeclared identifier
c:\documents and settings\administrator\桌面\windows核心编程\cmnhdr.h(212) : error C2065: 'GWLP_HINSTANCE' : undeclared identifier
c:\documents and settings\administrator\桌面\windows核心编程\01-errorshow\errorshow.cpp(83) : error C2065: 'PCTSTR' : undeclared identifier
c:\documents and settings\administrator\桌面\windows核心编程\01-errorshow\errorshow.cpp(83) : error C2146: syntax error : missing ')' before identifier 'LocalLock'
c:\documents and settings\administrator\桌面\windows核心编程\01-errorshow\errorshow.cpp(83) : error C2059: syntax error : ')'
c:\documents and settings\administrator\桌面\windows核心编程\01-errorshow\errorshow.cpp(125) : error C2664: 'DialogBoxParamA' : cannot convert parameter 4 from 'long (struct HWND__ *,unsigned int,unsigned int,long)' to 'int (__stdcall *)(struct HWND
__ *,unsigned int,unsigned int,long)'
None of the functions with this name in scope match the target type
Error executing cl.exe.
01 ErrorShow.exe - 6 error(s), 0 warning(s)
问题点数:30、回复次数:5Top
1 楼cwanter(亚玛逊河上的渔夫)回复于 2004-08-01 19:39:57 得分 5
去下个最新的SDK~Top
2 楼chunhai12(小海)回复于 2004-08-01 20:52:50 得分 1
楼上的,说得具体点好么Top
3 楼chunhai12(小海)回复于 2004-08-01 20:57:23 得分 15
刚刚搜索了一下
VC/MFC版有很多关于这个问题的帖子:
http://community.csdn.net/Expert/topic/3187/3187493.xml?temp=.448971
http://community.csdn.net/Expert/topic/2761/2761025.xml?temp=.8407404
http://community.csdn.net/Expert/topic/2657/2657677.xml?temp=.9721796
http://community.csdn.net/Expert/topic/3087/3087045.xml?temp=.0436365
http://community.csdn.net/Expert/topic/3168/3168923.xml?temp=.6919824Top
4 楼gaoshan333333(§小@山ぽメ)回复于 2004-08-01 21:37:26 得分 5
就是到microsoft下载最新的SDK,
你不知道网值吗Top
5 楼njcw666(黄土地)回复于 2004-08-01 22:09:05 得分 4
很可能你没有把需要的lib 链接上去 project -setting-linkTop
相关问题
- 调试vb.net初级编程书中例子不通过,请帮忙!
- 大家有谁调试过《jsp web 编程指南》这本书中的最后一个例子没有,是一个关于旅游景点的那个,我有源文件,可是调试不通
- UNIX环境高级编程的例子可以在LINUX下调试吗?
- 在CORBA编程中(书上例子),当我用IDLTOJAVA时,无论如何编译不通过,请高手帮忙……
- 照着书上编的对话框例子,居然调试不通过,请大侠指点!!
- 小弟最近在学习远程方法调用(rmi),从网上搞了个简单例子,但就是调试不通,请大家看看,谢谢!
- 为什么我调试不通呢?
- 求购 初学者的编程例子
- 求:《windows网络编程》例子代码
- 求WinCE.net 串口编程 例子代码




