Win32的项目转成WinCE编译时出现"DllMain function cannot be overloaded"的问题
来源:互联网 发布:淘宝天猫seo 编辑:程序博客网 时间:2024/05/17 06:23
Win32的ATL COM项目转成WinCE项目编译时出现:
error C2731: 'DllMain' : function cannot be overloaded
see declaration of 'DllMain'
error C2733: second C linkage of overloaded function 'DllMain' not allowed
see declaration of 'DllMain'
错误原因:
extern "C" BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
extern "C" BOOL WINAPI DllMain(HANDLE hInstance, DWORD dwReason, LPVOID lpReserved)
将HINSTANCE改成HANDLE就可以了
error C2731: 'DllMain' : function cannot be overloaded
see declaration of 'DllMain'
error C2733: second C linkage of overloaded function 'DllMain' not allowed
see declaration of 'DllMain'
错误原因:
extern "C" BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
extern "C" BOOL WINAPI DllMain(HANDLE hInstance, DWORD dwReason, LPVOID lpReserved)
将HINSTANCE改成HANDLE就可以了
- Win32的项目转成WinCE编译时出现"DllMain function cannot be overloaded"的问题
- 'WinMain' : function cannot be overloaded
- error C2731: 'WinMain' : function cannot be overloaded
- error C2731: 'WinMain' : function cannot be overloaded
- 提示error C2731: 'WinMain' : function cannot be overloaded
- u-boot移植时出现inline function 'coloured_LED_init' cannot be declared weak及相关错误时的解决办法!
- u-boot移植时出现inline function 'coloured_LED_init' cannot be declared weak及相关错误时的解决办法!
- u-boot移植时出现inline function 'coloured_LED_init' cannot be declared weak及相关错误时的解决办法!
- u-boot移植时出现inline function 'coloured_LED_init' cannot be declared weak及相关错误时的解决办法
- win7下用PB编译wince内核出现的问题(打不开以及fatal error C1033:cannot open program database)
- 解决java web项目导入后出现的问题 ---cannot be read or is not a valid ZIP file
- 解决java web项目出现的有关问题 -cannot be read or is not a valid ZIP file
- 解决java 项目导入后出现的问题 ---cannot be read or is not a valid ZIP file
- 解决java web项目导入后出现的有关问题 -cannot be read or is not a valid ZIP file
- 解决java web项目导入后出现的有关问题 -cannot be read or is not a valid ZIP file
- 使用webservlert注解时出现WebServlet cannot be resolved to a type的问题
- Android源码编译时遇到的问题:error:reference 'counts' cannot be declared 'mutable'
- cannot convert from 'overloaded-function' to 'AFX_THREADPROC'
- Session
- EXTERNAL TABLE The Access Driver【每日一译】--20121130
- i.mx53 linux led driver
- LeetCode : Minimum Window Substring
- 字符数组拷贝函数(一)
- Win32的项目转成WinCE编译时出现"DllMain function cannot be overloaded"的问题
- 关于Gibbs sampling
- dd-wrt start
- Service生命周期
- 算法的时间复杂度和空间复杂度
- spring对rest的支持
- Java关键字final、static使用总结
- 深度解析Java内存的原型
- JS抽奖程序