已经下载并配置了GDI+的库文件,在VC6编译网上下载来的几个GDI+源程序,都出现了以下的错误,然后我在gdiplusinit.h文件中定义了ULONG_PTR,没有这种错误了,可是却在创建EXE文件时不能够创建,不知这是什么原因?应该如何解决?
急,高手指教,谢谢啦!!!
--------------------Configuration: GDI Plus Brushes - Win32 Debug--------------------
Compiling...
StdAfx.cpp
f:\gdiplus\gdiplus\includes\gdiplusinit.h(39) : error C2065: 'ULONG_PTR' : undeclared identifier
f:\gdiplus\gdiplus\includes\gdiplusinit.h(39) : error C2065: 'token' : undeclared identifier
f:\gdiplus\gdiplus\includes\gdiplusinit.h(39) : error C2165: 'left-side modifier' : cannot modify pointers to data
f:\gdiplus\gdiplus\includes\gdiplusinit.h(39) : error C2071: 'NotificationHookProc' : illegal storage class
f:\gdiplus\gdiplus\includes\gdiplusinit.h(40) : error C2146: syntax error : missing ')' before identifier 'token'
f:\gdiplus\gdiplus\includes\gdiplusinit.h(40) : error C2165: 'left-side modifier' : cannot modify pointers to data
f:\gdiplus\gdiplus\includes\gdiplusinit.h(40) : error C2071: 'NotificationUnhookProc' : illegal storage class
f:\gdiplus\gdiplus\includes\gdiplusinit.h(40) : error C2059: syntax error : ')'
f:\gdiplus\gdiplus\includes\gdiplusinit.h(91) : error C2059: syntax error : 'const'
f:\gdiplus\gdiplus\includes\gdiplusinit.h(97) : error C2146: syntax error : missing ')' before identifier 'token'
f:\gdiplus\gdiplus\includes\gdiplusinit.h(97) : warning C4229: anachronism used : modifiers on data are ignored
f:\gdiplus\gdiplus\includes\gdiplusinit.h(97) : error C2182: 'GdiplusShutdown' : illegal use of type 'void'
f:\gdiplus\gdiplus\includes\gdiplusinit.h(97) : error C2059: syntax error : ')'
Error executing cl.exe.GDI Plus Brushes.exe - 12 error(s), 1 warning(s)