CreateWindow返回总为空,高手赐教
窗口创建失败,求教高手WNDCLASS wndcls;
wndcls.cbClsExtra=0;
wndcls.cbWndExtra=0;
wndcls.hbrBackground=(HBRUSH)GetStockObject(BLACK_BRUSH);
wndcls.hCursor=LoadCursor(NULL,IDC_CROSS);
wndcls.hIcon=LoadIcon(NULL,IDI_ERROR);
wndcls.hInstance=hInstance;
wndcls.lpfnWndProc=WinProc;
wndcls.lpszClassName="Weixin2003";
wndcls.lpszMenuName=NULL;
wndcls.style=CS_HREDRAW | CS_VREDRAW;
wndcls.hInstance=hInstance;
RegisterClass(&wndcls);
HWND hwnd;
hwnd=CreateWindow(TEXT ("Weixin2003"),
“标题",WS_VISIBLE,0,0,600,400,NULL,NULL,hInstance,NULL);
hwnd为空,不知道为什么。