Closed Amaroq-Clearwater closed 3 months ago
When you make a program like that, you usually start without a console, then create one with AllocConsole. Because you start without a console, you will use entry_winmain.c .
And if you want to use things like printf you also need to do
freopen("CONIN$", "r", stdin);
freopen("CONOUT$", "w", stdout);
freopen("CONOUT$", "w", stderr);
If I'm trying to make a program that can execute both in console and in a GUI, like if I use a command-line argument in the shortcut "-console" that launches a console alongside the GUI version, or "-nogui" which disables the GUI and automatically launches the console, which entry file am I supposed to use?