明明已经装了PSDK了,怎么还提示没有更新最新的SDK

VIPVIPVIP 2013-10-01 02:54:27

最近学windows核心编程,我用的windows核心编程第四版,把源码打开编译就报错。在网上查了好久,说是没有安装最新的SDK,我电脑上已经装了SDK for windows server 2003 SP1啊,而且在VC6.0的directies里面也设置了INCLUDE和LIB,都提到了首位。难道这个SDK还不够新?最烦这些琐事,还没开始学就被这些环境啊,配置之类的事情搞烦死了。求大神帮帮忙。另外说一句,这个CSDN里面发帖打字总是有种卡得感觉,是服务器不行了吗?

ErrorShow.cpp
You are not using the latest Platform SDK header/library
files. This may prevent the project from building correctly.
..\CmnHdr.h(212) : error C2065: 'GetWindowLongPtr' : undeclared identifier
..\CmnHdr.h(212) : error C2065: 'GWLP_HINSTANCE' : undeclared identifier
ErrorShow.cpp(83) : error C2065: 'PCTSTR' : undeclared identifier
ErrorShow.cpp(83) : error C2146: syntax error : missing ')' before identifier 'L
ocalLock'
ErrorShow.cpp(83) : error C2059: syntax error : ')'
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
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.
...全文
216 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
VIPVIPVIP 2013-10-20
  • 打赏
  • 举报
回复
算了,这个问题我自己解决了,不用makefile那种方式编译了,改成dsw工程编译成功了。
hdg3707 2013-10-01
  • 打赏
  • 举报
回复
在XP下,我的电脑右键,选择“属性”,然后好象“高级”,就会看到环境变量,只要在“我的电脑”右键属里找,总能找到环境变量这个设置。
在WIN8下,打开资源管理器,右键“计算机”,选择“属性”-“高级系统设置”,就会看到环境变量
VIPVIPVIP 2013-10-01
  • 打赏
  • 举报
回复
环境变量怎么设置?
hdg3707 2013-10-01
  • 打赏
  • 举报
回复
这恐怕不是没有装最新的SDK,而是装了最新的SKD造成的,有些函数并不是兼容旧版本的。另外,你再设一下操作系统的环境变量里的查试路径,就是在操作系统里的环境变量里,添加上SDK的各个路径

15,471

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 进程/线程/DLL
社区管理员
  • 进程/线程/DLL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧