win32几个常见问题
2010-05-17 17:15
225 查看
问题1:
error C2440: '=' : cannot convert from 'struct HMENU__ *' to 'const char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
解决方法:
Change:
wndClass.lpszMenuName = (char*)LoadMenu(NULL,MAKEINTRESOURCE(MAIN_MENU));
to:
wndClass.lpszMenuName = MAKEINTRESOURCE(MAIN_MENU);
error C2440: '=' : cannot convert from 'struct HMENU__ *' to 'const char *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
解决方法:
Change:
wndClass.lpszMenuName = (char*)LoadMenu(NULL,MAKEINTRESOURCE(MAIN_MENU));
to:
wndClass.lpszMenuName = MAKEINTRESOURCE(MAIN_MENU);
相关文章推荐
- 谈谈测试过程中常见的几个问题
- SQLServer2005日志传送常见的几个问题
- C/C++几个面试常见细节问题及解答
- 网球线的几个常见问题(2)
- GDI+中常见的几个问题(4) 转
- XP系统下IIS常见的几个问题
- 常见的几个Qt编程问题的处理
- mdadm构建软raid中常见的几个问题
- GraphicsStatsService常见的几个问题带来的思考
- 几个常见的错误(java&android)问题
- 几个有关iOS的几个常见问题-----RunTime
- java中几个常见的基础问题
- jbuilderx常见几个问题
- 分享一下Mysql常见的几个错误问题及解决方法
- GDI+中常见的几个问题(7)
- GDI+中常见的几个问题(7)多帧图像
- 新建和发布Windows服务的几个常见问题
- 技术管理中常见的几个问题
- GDI+中常见的几个问题(4)
- Java和jsp编程中应该注意的几个常见问题