在VC6工程中如何设置才能编译GDI+程序啊!
我从2002.net中将PlatformSDK目录COPY到我的
VC6的c:\program files\microsoft visual studio\VC98目录中
再在VC6的tools菜单中选Options菜单
添加了include目录
c:\program files\microsoft visual studio\VC98\PlatformSDK\include\prerelease
之后又加了Lib目录
c:\program files\microsoft visual studio\VC98\PlatformSDK\lib\prerelease
可是编译时还报错啊!
.....\prerelease\GdiplusInit.h(32):error c2065: 'ULONG_PTR' : undeclared identifier
。。一大堆的错
是不是还是没设置好啊!?
多谢!
我从2002.net中将PlatformSDK目录COPY到我的
VC6的c:\program files\microsoft visual studio\VC98目录中
再在VC6的tools菜单中选Options菜单
添加了include目录
c:\program files\microsoft visual studio\VC98\PlatformSDK\include\prerelease
之后又加了Lib目录
c:\program files\microsoft visual studio\VC98\PlatformSDK\lib\prerelease
可是编译时还报错啊!
.....\prerelease\GdiplusInit.h(32):error c2065: 'ULONG_PTR' : undeclared identifier
。。一大堆的错
是不是还是没设置好啊!?
多谢!
解决方案 »
- 这个是怎么读出来的。。
- TCP windows 下 send 一次最大数据包是多大?
- 在自定义类中访问主对话框对象?
- 在VC中创建简单的空白窗口时遇到的问题
- 怎样让程序等待ShellExecute执行完成后在继续运行...???
- 请教关于CStatic的奇怪问题
- 关于CTreeCtrl的问题,请大家指点
- 用API函数在ComboBox(组合框)怎么写入字符串、判断选取、获取字符串.
- 我说的你一定知道,给介绍几个新闻时事论坛,要求有深度,最好国外中文网站
- VC开发环境的乖事,大家有时间来看看
- 急问:本来正常的Dialog不能打开了,为什么啊
- 怎样向一个低级格式化过的软盘做入WINDOWS文件系统,大家说说.
http://www.codeguru.com/gdi/GDIPlus.zip 2.正确设置include & lib 目录3.在 stdafx.h 添加:
#ifndef ULONG_PTR
#define ULONG_PTR unsigned long*
#endif
#include <gdiplus.h>
……
起动:
GdiplusStartupInput gdiplusStartupInput;
ULONG_PTR gdiplusToken;
GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL);
释放:
GdiplusShutdown(gdiplusToken);
还有Gdiplus.dll文件,一定要1.6M的。1.4M左右的一定在执行的时候会出错
http://www.codeguru.com/gdi/GDIPlus.zip 2.正确设置include & lib 目录3.在 stdafx.h 添加:
#ifndef ULONG_PTR
#define ULONG_PTR unsigned long*
#endif
#include <gdiplus.h>--------------------------
第三条不一定需要,如果你装有sdk,就用这条
http://www.crazy-bit.com/download/gdiplus.zip
解压到适当路径,添加路径到VC环境变量中去。
使用namespace。
用的是code project上ccylinderprogresscontrol类http://www.codeproject.com/miscctrl/ccylinderprogresscontrol.asp
将这个ccylinderprogresscontrol类,用到我的工程中(按高手的说明设置好
GDI+)编译时报Color.Gold的什么什么没有Gold成员啊!
求高手帮试试。