我想用CWnd直接创建一个程序的主窗口,怎么老是报错啊?
CWinApp::InitInstance();
CWnd *pwnd = new CWnd();
pwnd->CreateEx(0, "sdfsdf", "sdfsadf", 0 , 0, 0, 100, 100, NULL, 0);
pwnd->ShowWindow(SW_SHOW);
pwnd->UpdateWindow();
必须子类化吗?请各位仁兄帮忙..............................