when give exe path in windows services callback is not fired in exe file
Hi,
I dont know that this is the right thread to ask doubt about windows service.But it is very urgent. I am helpless. So i am coming to this forum. I am using windows services. I have one exe file(MFC application). Using windows service i am calling this exe file like
System.Diagnostic.Process.Start(Path);
When services run the exe is opened but the callback function is not running. I give a AfxMessagebox inside the exe file. In local it is executed.But when call from services it is not fired. The function is not executed.
Give me the suggestion. Hope your's reply.
Thanks
Re: when give exe path in windows services callback is not fired in exe file
A service can't show a messagebox
Re: when give exe path in windows services callback is not fired in exe file
Hi dude,
Thanks for your reply. Please understand my question. The exe is MFC application. AfxMessageBox("something") like an alert inside the cpp file. It is showing when calling the exe file. For checking i put this messagebox. But my question is the exe is opened but inside the function and callback function of exe file is not fired when give the file path to services. It is just showing the desktop that is UI of exe.
Now i hope that you got my question. Again thanks for your reply.
Thanks
Re: when give exe path in windows services callback is not fired in exe file
The messagebox is "show" for the service-user, so no-one can press the OK button, so the program stops. Using the taskmanager you should be able to see the process of the exe