您的位置:首页 > 其它

报错 error C2664: 'CreateWindowExA' : cannot convert parameter 2 from 'unsigned short [10]' to 'const char *'

2011-01-03 13:21 801 查看
//创建窗口
HWND hWnd = CreateWindow( L"ClassName", "三维字体",
WS_OVERLAPPEDWINDOW, 200, 100, 600,500,
GetDesktopWindow(), NULL, wc.hInstance, NULL );

报错

error C2664: 'CreateWindowExA' : cannot convert parameter 2 from 'unsigned short [10]' to 'const char *'

因为这段代码是在 vs2005写的 在vc6

去掉“L”

//创建窗口
HWND hWnd = CreateWindow( "ClassName", "三维字体",
WS_OVERLAPPEDWINDOW, 200, 100, 600,500,
GetDesktopWindow(), NULL, wc.hInstance, NULL );
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐