在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
。。一大堆的错
是不是还是没设置好啊!?
多谢!

解决方案 »

  1.   

    摘自vckbase总结一下 VC6 下如何使用GDI+ :)1.下载解压GDI+开发包:
    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>
    ……
      

  2.   

    记得一定要在用using namespace Gdiplus; 
    起动:
    GdiplusStartupInput gdiplusStartupInput;
    ULONG_PTR gdiplusToken;
    GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL);
    释放:
             GdiplusShutdown(gdiplusToken);
    还有Gdiplus.dll文件,一定要1.6M的。1.4M左右的一定在执行的时候会出错
      

  3.   

    摘自vckbase总结一下 VC6 下如何使用GDI+ :)1.下载解压GDI+开发包:
    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,就用这条
      

  4.   

    下载GDIPlus包
    http://www.crazy-bit.com/download/gdiplus.zip
    解压到适当路径,添加路径到VC环境变量中去。
    使用namespace。
      

  5.   

    各位高手:我是想美化Progress啊!
    用的是code project上ccylinderprogresscontrol类http://www.codeproject.com/miscctrl/ccylinderprogresscontrol.asp

    将这个ccylinderprogresscontrol类,用到我的工程中(按高手的说明设置好
    GDI+)编译时报Color.Gold的什么什么没有Gold成员啊!
    求高手帮试试。