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. ATL / WTL / STL
  4. COM Server/Service

COM Server/Service

Scheduled Pinned Locked Moved ATL / WTL / STL
c++comsysadminhelpquestion
3 Posts 2 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.
  • S Offline
    S Offline
    shekar_raja
    wrote on last edited by
    #1

    Hi All Is it possible to develop a COM server as a/service which would start when a client instantiates an object of it? I know this is possible in theory, but I've tried doing it, by creating a Service using ATL COM Wizard and then adding an ATL Object. From the client, I tried to instantiate an object of this exposed interface. But the service does not start up and the pointer returned to me in the client is NULL. Can anyone help me provide pointers? Thanks in advance, Cheers Raja

    A 1 Reply Last reply
    0
    • S shekar_raja

      Hi All Is it possible to develop a COM server as a/service which would start when a client instantiates an object of it? I know this is possible in theory, but I've tried doing it, by creating a Service using ATL COM Wizard and then adding an ATL Object. From the client, I tried to instantiate an object of this exposed interface. But the service does not start up and the pointer returned to me in the client is NULL. Can anyone help me provide pointers? Thanks in advance, Cheers Raja

      A Offline
      A Offline
      Anonymous
      wrote on last edited by
      #2

      Here, take a look at this http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/_atl_atl_services.asp Hope this helps.

      S 1 Reply Last reply
      0
      • A Anonymous

        Here, take a look at this http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/_atl_atl_services.asp Hope this helps.

        S Offline
        S Offline
        shekar_raja
        wrote on last edited by
        #3

        Hi Thanks heaps ! I was trying to instantiate an instance using VC++ and CoCreateInstance. Maybe I could not get the CLSID of the class correctly. I used VB client and it works fine ! :-)) Many a thanks, However, can you tell me how to get the CLSID of a class id to use it with the CoCreateInstance. I tried CLSID<>, __uuidof <>, but no luck :-( I tried using the Smart pointers too. Cheers Raja

        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