문제

I want to add a wrapper to the MFC WinMain in order to be able to make a MFC application be able run as GUI application or as a service.

Can I add a wrapper to WinMail from MFC without modifying MFC source code?

도움이 되었습니까?

해결책

It is possible, just check the command line parameters in order to change the behavior. Check http://msdn.microsoft.com/en-us/library/ms687414(VS.85).aspx

In case you will want to make it work as console remember that it is not possible to make an application that is running as both console and GUI on Windows. Still there is not limitation for services, a service application can be a GUI one or a command line one.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top