If coding in Python, running an EXE in the background, unattached to a console is easily accomplished with PyInstaller’s -w option. But what if you are coding in C? I know, who in their right mind codes in the C’s? Well, on occasion, I still do because I’m old and learned C first, like 35 years ago or whatever it has been now.
So how to make the EXE run in the background with C? Easy. Don’t use a main function. Use a wWinMain function!
And in Visual Studio, set your SubSystem property to the following: