使用gdiplus.lib出现的一些问题解决办法(不断增加中。。。)
2009-10-14 10:31
666 查看
FAQ1:
使用gdiplus.lib出现下面的错误?
error C2065: 'ULONG_PTR' : undeclared identifier
error C2065: 'token' : undeclared identifier
error C2165: 'left-side modifier' : cannot modify pointers to data
error C2071: 'NotificationHookProc' : illegal storage class
error C2146: syntax error : missing ')' before identifier 'token'
error C2165: 'left-side modifier' : cannot modify pointers to data
error C2071: 'NotificationUnhookProc' : illegal storage class
error C2059: syntax error : ')'
error C2059: syntax error : 'const'
error C2146: syntax error : missing ')' before identifier 'token'
warning C4229: anachronism used : modifiers on data are ignored
error C2182: 'GdiplusShutdown' : illegal use of type 'void'
error C2059: syntax error : ')
ANS:
与MFC 定义的ULONG_PTR冲突
#define ULONG_PTR void*
#inculde <gdiplus.h>
即可解决。
使用gdiplus.lib出现下面的错误?
error C2065: 'ULONG_PTR' : undeclared identifier
error C2065: 'token' : undeclared identifier
error C2165: 'left-side modifier' : cannot modify pointers to data
error C2071: 'NotificationHookProc' : illegal storage class
error C2146: syntax error : missing ')' before identifier 'token'
error C2165: 'left-side modifier' : cannot modify pointers to data
error C2071: 'NotificationUnhookProc' : illegal storage class
error C2059: syntax error : ')'
error C2059: syntax error : 'const'
error C2146: syntax error : missing ')' before identifier 'token'
warning C4229: anachronism used : modifiers on data are ignored
error C2182: 'GdiplusShutdown' : illegal use of type 'void'
error C2059: syntax error : ')
ANS:
与MFC 定义的ULONG_PTR冲突
#define ULONG_PTR void*
#inculde <gdiplus.h>
即可解决。
相关文章推荐
- python2.6使用mysql包出现的一些问题以及解决办法
- mosquitto 使用时出现的一些问题及其解决办法
- 使用AndroidStudio出现的一些问题及解决办法
- python2.6使用mysql包出现的一些问题以及解决办法
- 使用Springmvc出现问题及解决办法
- Windows7下Python安装Numpy、Matplotlib以及Scipy时出现的问题以及解决办法
- 初学者在python下使用Ta-lib库时遇到的一些问题及解决办法
- intellij idea使用junit时出现的问题以及解决办法
- android ListView在使用中碰得一些问题的解决办法
- iOS开发遇到的坑之六--使用cocopods管理第三方库时,编译出现Library not found for -lPods问题的解决办法
- 使用 apt-get 的時候,出现目录或者被锁住的解决办法(E: 无法获得锁 /var/lib/dpkg/lock - open (11: 资源临时不可用) E: 无法对管理目录(/var/lib/dpkg/)加锁,是不是另一个包管理)
- Maven导入工程出现的一些问题解决办法
- 使用solr4.9部署到tomcat上出现Context [/solr] startup failed due to previous errors问题以及解决办法
- 使用 eclipse时,出现如下问题:org.eclipse.swt.SWTError: No more handles的解决办法
- 生产环境使用elasticsearch遇到的一些问题以及解决方法(不断更新)
- Windows下关于Composer使用时出现的问题及解决办法
- 关于json-lib 和hibernate一起使用的时候出现死循环的解决办法
- Windows下关于Composer使用时出现的问题及解决办法
- VS2008编译DirectX SDK 2004 summer版的Sound例子程序出现的libcp.lib找不到的问题的解决办法
- android模拟器经常出现的一些问题及解决办法