作成しているプログラムのスプラッシュを作成していますが、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_hinstanceHINSTANCE DllMain取得は
classnameウィンドウクラスの名前です