我只是想编译这个简单的例子:http://msdn.microsoft.com/en-us/library/ms533895(VS.85).aspx
需要做什么,以便编译和运行它?
首先我得到gdiplus.h找不到错误。修好后
这些是错误:
1> E:\ Program Files \ Microsoft Platform SDK for Windows XP SP2 \ Include \ specstrings.h(334):警告C4005:'__reserved':宏重新定义
1> e:\ Program Files \ Microsoft Visual Studio 8 \ VC \ include \ sal.h(702):参见'__reserved'的先前定义
1> E:\ Program Files \ Microsoft Platform SDK for Windows XP SP2 \ Include \ specstrings.h(341):警告C4005:'__ checkReturn':宏重新定义
1> e:\ Program Files \ Microsoft Visual Studio 8 \ VC \ include \ sal.h(703):参见'__ checkReturn'的先前定义
请帮助
答案 0 :(得分:1)
for visual studio:将链接器设置 - >命令行“gdiplus.lib”添加到“其他选项”