int APIENTRY WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { CDialog dlg; dlg.DoDialogBox(hInstance, CDialog::IDD, GetDesktopWindow()); return 0; }