WinMain
パラメータでQAppコンストラクタが失敗するのはなぜですか?
int CALLBACK WinMain(HINSTANCE, HINSTANCE, LPTSTR _lpCmdLine, int _nShowCmd) {
QApplication app(_nShowCmd, & _lpCmdLine);
そして、ここでは例外で失敗します:
Exception at adress 0x0F3621DC (Qt5Guid.dll) in updater_app.exe: 0xC0000005
どうしたの?それを修正する方法は?
更新:
そして、それは次のように機能します:
int CALLBACK WinMain(HINSTANCE, HINSTANCE, LPTSTR _lpCmdLine, int _nShowCmd) {
int nShowCmd(0);
QApplication app(nShowCmd, & _lpCmdLine);
_lpCmdLine
は 10 で_nShowCmd
空の文字列なので、一致しません。なんで?