Results 1 to 4 of 4

Thread: when give exe path in windows services callback is not fired in exe file

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jun 2007
    Posts
    241

    Thumbs up 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
    Failing to plan is Planning to fail

  2. #2
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 2002
    Location
    Eygelshoven
    Posts
    1,611

    Re: when give exe path in windows services callback is not fired in exe file

    A service can't show a messagebox
    VB6 & C# (WCF LINQ) mostly


    If you need help with a WPF/WCF question post in the NEW WPF & WCF forum and we will try help the best we can

    My site

    My blog, couding troubles and solutions

    Free online tools

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jun 2007
    Posts
    241

    Thumbs up 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
    Failing to plan is Planning to fail

  4. #4
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 2002
    Location
    Eygelshoven
    Posts
    1,611

    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
    VB6 & C# (WCF LINQ) mostly


    If you need help with a WPF/WCF question post in the NEW WPF & WCF forum and we will try help the best we can

    My site

    My blog, couding troubles and solutions

    Free online tools

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width