Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. MFC app to service app

MFC app to service app

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++helptutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Musen80
    wrote on last edited by
    #1

    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 T 2 Replies Last reply
    0
    • M Musen80

      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 Offline
      I Offline
      ionzarate
      wrote on last edited by
      #2

      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:

      1 Reply Last reply
      0
      • M Musen80

        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

        T Offline
        T Offline
        Tarundeep Singh Kalra
        wrote on last edited by
        #3

        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........??

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups