Skip to content

Commit

Permalink
Update main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
AXDOOMER authored Jan 7, 2024
1 parent 5e49076 commit 3932e1f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Project/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@

using namespace std;

#ifdef WIN32
#include <windows.h>
#endif

int main(int argc, const char* argv[])
{
try
Expand All @@ -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

0 comments on commit 3932e1f

Please sign in to comment.