How to create a single instance of a child exe (COM Server Type exe)and use it throu

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sivavuyyuru5942
    New Member
    • Nov 2013
    • 1

    #1

    How to create a single instance of a child exe (COM Server Type exe)and use it throu

    Hi,

    I have an MFC application(.ex e) in which i am creating an pointer object to CComQIptr<chems t::IChems>myinf o and after this i have using cocreateinstanc e i had created the object launching that object,so Where i am using that CComQIptr object i have been creating instance to that COM exe(child exe) and at the end of the function i am releasing that object (myinfo->release).i want to create single instance for it and i want to use them in different .cpp files and finally i want to kill the child exe.Eventhough i release the object it is still alive.(Visualis ing in Task manager whether the exe is still alive or not).

    Thanks in Advance.
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    This is a Singleton design pattern issue.

    Read this: http://bytes.com/topic/c/insights/65...erns-singleton

    Comment

    Working...