0
我創造,我正在做,但的RegisterClass不斷失敗的程序飛濺(2:系統找不到指定的文件)的RegisterClass失敗,錯誤代碼2
我的代碼是這樣的:
WNDCLASS wc = {0};
wc.lpfnWndProc = DefWindowProc;
wc.hInstance = g_hinstance;
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
if (wc.hCursor == NULL)
{
#ifdef DEBUG
log_debug("ShowSplash:CreateSplashWindow: LoadCursor failed: %d", GetLastError());
#endif
return NULL;
}
wc.lpszClassName = classname;
if (RegisterClass(&wc) == 0);
{
#ifdef DEBUG
log_debug("ShowSplash:CreateSplashWindow: RegisterClass failed: %d", GetLastError());
#endif
return NULL;
}
g_hinstance
是HINSTANCE
DllMain
得到
classname
是窗口類
啊。我認爲與此有關的是問題。只是沒有注意到那裏的分號Xp – 2010-10-24 19:53:41