CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
可用分押宝游戏火热进行中... 专题改版:Java Web 专题
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  C/C++ >  C++ 语言

谁看过《windows核心编程》这本书,里面的例子怎么调试不通?在线等

楼主iamwh()2004-08-01 18:43:42 在 C/C++ / C++ 语言 提问

主要是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 串口编程 例子代码

关键词

  • .net
  • 桌面
  • cpp
  • sdk
  • errorshow
  • cmnhdr
  • identifierc
  • undeclared
  • correctly
  • administrator

得分解答快速导航

  • 帖主:iamwh
  • cwanter
  • chunhai12
  • chunhai12
  • gaoshan333333
  • njcw666

相关链接

  • C/C++ Blog
  • C/C++类图书
  • C/C++类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
世纪乐知(北京)网络技术有限公司 版权所有, 京 ICP 证 020026 号
北京创新乐知广告有限公司 提供技术支持
Copyright © 2000-2007, CSDN.NET, All Rights Reserved
GongshangLogo