How to add wrapper to MFC WinMain?
1 answer
Maybe just check your command line options to change the behavior. Check http://msdn.microsoft.com/en-us/library/ms687414(VS.85).aspx
If you want it to work like a console, remember that it is not possible to create an application that runs both a console and a graphical interface on Windows. However, there are no restrictions for services, a service application can be a GUI or command line.
+1
a source to share