WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
DWORD lTime;
SPLASHFORM = new TSPLASHFORM(SPLASHFORM);
SPLASHFORM->Show();
SPLASHFORM->Update();
lTime = GetTickCount();
Application->CreateForm(__classid(TMainForm), &MainForm);
Application->Initialize();
Application->CreateForm(__classid(TDM), &DM);
Application->CreateForm(__classid(TMDIChild), &MDIChild);
Application->CreateForm(__classid(TLogDlg), &LogDlg);
while( (GetTickCount()-lTime)/1000 < 2) //秒数 2
Application->ProcessMessages();
SPLASHFORM->Hide();
SPLASHFORM->Free();
Application->Run();
return 0;
}
上面的程序( c++ builder )供参考