MFC app to service app
-
Hi! I have done a MFC application with dialogs in .NET. Now I want that application to run as a service application. Can someone help me with this. Is it hard? Is there any articles on the web about this? Or can anyone explain directly how to do it? Regards Martin
-
Hi! I have done a MFC application with dialogs in .NET. Now I want that application to run as a service application. Can someone help me with this. Is it hard? Is there any articles on the web about this? Or can anyone explain directly how to do it? Regards Martin
I don´t know how it goes in .NET, but in VC++6.0 you can make a Windows service with the Appwizard New Project -> ATL-COM Appwizard -> Server type=Service The should be something similar in .NET. When starting the service, your service.exe should launch your mfc_app.exe calling
CreateProcess()
. And when the service is stoped, it should post WM_QUIT to your mfc_app.exe. Hope it helps Bye. :wtf: -
Hi! I have done a MFC application with dialogs in .NET. Now I want that application to run as a service application. Can someone help me with this. Is it hard? Is there any articles on the web about this? Or can anyone explain directly how to do it? Regards Martin
well you cant run the service with the dialogs without the user account , you may have to register your process in the SCM and make the properties with interactive with desktop. I hope this hint will help. Regards Tarundeep Singh Kalra www.tarunsadhana.com Blue Pill or Red Pill........??