关于Microsoft Platform SDK,等待!

aspvbjava 2003-09-09 03:58:07
手头有一个例子程序,文档上说:重新编译程序需要Microsoft Platform SDK,我下载了SDK并且安装了,结果编译(compile)我的程序没有错误了,但是build还是不能通过,请问sdk要怎么用啊?
...全文
133 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
aspvbjava 2003-09-09
  • 打赏
  • 举报
回复
把目录设置以后就直接可以像平常的程序一样build,运行吗?
aspvbjava 2003-09-09
  • 打赏
  • 举报
回复
回Kingore(没有希望的过去)
工具--〉选择--〉目录 里面我看见已经有这两个目录了
shootingstars 2003-09-09
  • 打赏
  • 举报
回复
在TOOLS-》OPTIONS-》DIRECTORIES:
include files中将新添加的SDK的目录拖动到最上面。
aspvbjava 2003-09-09
  • 打赏
  • 举报
回复
错误信息如下


--------------------Configuration: MCastSvr - Win32 Release--------------------
Compiling...
MCastSvrDlg.cpp
E:\SDK\MCastSvr\MCastSvrDlg.cpp(148) : error C2065: 'IPPROTO_IPV6' : undeclared identifier
E:\SDK\MCastSvr\MCastSvrDlg.cpp(149) : error C2065: 'IPV6_MULTICAST_HOPS' : undeclared identifier
E:\SDK\MCastSvr\MCastSvrDlg.cpp(211) : error C2065: 'IPV6_MULTICAST_LOOP' : undeclared identifier
E:\SDK\MCastSvr\MCastSvrDlg.cpp(259) : error C2027: use of undefined type 'addrinfo'
E:\SDK\MCastSvr\MCastSvrDlg.h(63) : see declaration of 'addrinfo'
E:\SDK\MCastSvr\MCastSvrDlg.cpp(259) : error C2227: left of '->ai_family' must point to class/struct/union
E:\SDK\MCastSvr\MCastSvrDlg.cpp(264) : error C2027: use of undefined type 'addrinfo'
E:\SDK\MCastSvr\MCastSvrDlg.h(63) : see declaration of 'addrinfo'
E:\SDK\MCastSvr\MCastSvrDlg.cpp(264) : error C2227: left of '->ai_addr' must point to class/struct/union
E:\SDK\MCastSvr\MCastSvrDlg.cpp(264) : error C2227: left of '->sin_addr' must point to class/struct/union
E:\SDK\MCastSvr\MCastSvrDlg.cpp(264) : error C2228: left of '.S_un' must have class/struct/union type
E:\SDK\MCastSvr\MCastSvrDlg.cpp(264) : error C2228: left of '.S_addr' must have class/struct/union type
E:\SDK\MCastSvr\MCastSvrDlg.cpp(265) : error C2027: use of undefined type 'addrinfo'
E:\SDK\MCastSvr\MCastSvrDlg.h(63) : see declaration of 'addrinfo'
E:\SDK\MCastSvr\MCastSvrDlg.cpp(265) : error C2227: left of '->ai_addr' must point to class/struct/union
E:\SDK\MCastSvr\MCastSvrDlg.cpp(265) : error C2227: left of '->sin_addr' must point to class/struct/union
E:\SDK\MCastSvr\MCastSvrDlg.cpp(265) : error C2228: left of '.S_un' must have class/struct/union type
E:\SDK\MCastSvr\MCastSvrDlg.cpp(265) : error C2228: left of '.S_addr' must have class/struct/union type
E:\SDK\MCastSvr\MCastSvrDlg.cpp(267) : error C2027: use of undefined type 'addrinfo'
E:\SDK\MCastSvr\MCastSvrDlg.h(63) : see declaration of 'addrinfo'
Kingore 2003-09-09
  • 打赏
  • 举报
回复
按装之后到VC工程里进行设置路径:
具体方法:
TOOLS-》OPTIONS-》DIRECTORIES:
include files
library files
两个选项下分别加入你的新的PLATFORM SDK 路径(注意要放在VC默认路径的前面!!!)
李_军 2003-09-09
  • 打赏
  • 举报
回复
错误提示信息?

16,472

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • Web++
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

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