【发布时间】:2010-07-12 13:42:13
【问题描述】:
它在 Windows 中是否正确并没有说它不好或不推荐。
例如这样:
int APIENTRY _tWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
UNREFERENCED_PARAMETER(hPrevInstance);
UNREFERENCED_PARAMETER(lpCmdLine);
UNREFERENCED_PARAMETER(nCmdShow);
INT_PTR result = DialogBox(hInstance, MAKEINTRESOURCE(IDD_MAINWINDOWBOX), nullptr, MainWindow);
return static_cast<int>( result );
}
【问题讨论】:
标签: c++ windows dialog winmain