1.载解压GDI+开发包;2.正确设置include&lib目录;3.stdafx.h添加:#ifndefULONG_PTR#defineULONG_PTRunsignedlong*#endif#include或者将VisualC++2005下的BaseTsd.h头文件(该文件已放入GDI+开发包的Include目录中)替换VisualC++6.0下的BaseTsd.h头文件。然后:#include#include或者将VisualC++2