Is QtEntryPoint added automatically?

This commit is contained in:
Anonymous Maarten 2025-06-02 04:41:43 +02:00
parent 81f0950dcb
commit d0703f710a
2 changed files with 1 additions and 17 deletions

View File

@ -374,19 +374,3 @@ int main(int argc, char* argv[])
g_theApp.ExitInstance();
return result;
}
#ifdef _WIN32
extern "C" int APIENTRY WinMain(HINSTANCE instance, HINSTANCE prevInstance, LPSTR /*cmdParamarg*/, int cmdShow)
{
// Work-around problems with wchar_t as a native type
const unsigned short* cmdLineUtf16 = reinterpret_cast<const unsigned short*>(GetCommandLineW());
QByteArray cmdParam = QString::fromUtf16(cmdLineUtf16).toLocal8Bit();
int argc = 0;
QVector<char*> argv(8);
qWinMain(instance, prevInstance, cmdParam.data(), cmdShow, argc, argv);
int result = main(argc, argv.data());
return result;
}
#endif

View File

@ -79,7 +79,7 @@ typedef struct HWND__* HWND;
typedef HINSTANCE HMODULE;
typedef struct HDC__* HDC;
typedef struct HPALETTE__* HPALETTE;
typedef struct HCURSOR__* HCURSOR;
typedef HICON HCURSOR;
typedef HANDLE HFILE;
typedef int LSTATUS, HKEY, REGSAM;