From 3932e1f73f0e9a52da5d772845450c48fa02da2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre-Xavier=20Labont=C3=A9-Lamoureux?= Date: Sun, 7 Jan 2024 02:47:52 -0500 Subject: [PATCH] Update main.cpp --- Project/main.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Project/main.cpp b/Project/main.cpp index da995563..33b97a95 100644 --- a/Project/main.cpp +++ b/Project/main.cpp @@ -26,6 +26,10 @@ using namespace std; +#ifdef WIN32 +#include +#endif + int main(int argc, const char* argv[]) { try @@ -44,3 +48,10 @@ int main(int argc, const char* argv[]) return EXIT_FAILURE; } } + +#ifdef WIN32 +int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { + // Call your existing main function + return main(__argc, __argv); +} +#endif