CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2011
    Posts
    44

    COM singleton to share data between processes?

    Hello,

    I have a problem described here (http://www.codeguru.com/forum/showthread.php?p=2059816).

    I've developed an namespace extension with a datahandler. This datahandler needs to be singleton and available for all processes (e.g. explorer.exe and notepad.exe) so that the data does not have to be retrieved over and over again by a new process.

    I've read something that I might use a COM singleton?! Does anybody here have some information about this? Or do you have some idea how I can do this somehow?


    Kind regards,
    Michael

  2. #2
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,633

    Re: COM singleton to share data between processes?

    DispSink Sample
    The DispSink sample demonstrates a singleton server object (an object that can have only one instance) that has its own dual interface and a dispatch interface used for firing off events.
    Not sure how it fits, but it worth trying.
    Best regards,
    Igor

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

Featured