您的位置:首页 > 其它

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);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: