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. NT Service

NT Service

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
4 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.
  • R Offline
    R Offline
    Roger
    wrote on last edited by
    #1

    Does anyone have a guideline that I can use on how to create an NT service that will allow use of MFC? If so can you please point me in the right direction. Thanks! Roger Printy Software Engineer TeraNex Orlando, FL

    L T 3 Replies Last reply
    0
    • R Roger

      Does anyone have a guideline that I can use on how to create an NT service that will allow use of MFC? If so can you please point me in the right direction. Thanks! Roger Printy Software Engineer TeraNex Orlando, FL

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Please, but please, do not use MFC on services... First of all a service can create a window on another desktop than yours... I'm wondering what MFC will do in CWnd::FromHandle... Cristian 'Sardaukar' Amarie Zero Software Group

      1 Reply Last reply
      0
      • R Roger

        Does anyone have a guideline that I can use on how to create an NT service that will allow use of MFC? If so can you please point me in the right direction. Thanks! Roger Printy Software Engineer TeraNex Orlando, FL

        T Offline
        T Offline
        Tomasz Sowinski
        wrote on last edited by
        #3

        If you just need to use MFC database classes in your service, you can check these Knowledge Base articles for more info: Q152696 Q156138 Tomasz Sowinski -- http://www.shooltz.com.pl

        1 Reply Last reply
        0
        • R Roger

          Does anyone have a guideline that I can use on how to create an NT service that will allow use of MFC? If so can you please point me in the right direction. Thanks! Roger Printy Software Engineer TeraNex Orlando, FL

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Most likely, you don't need to write your own NT service. Just write you program in MFC and uses a special NT service to run it.

          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