COM data sharing

This is a discussion on COM data sharing within the Windows Programming forums, part of the Platform Specific Boards category; Hello everyone, I am developing a COM DLL (native unmanaged C++ using Visual Studio 2005). I have the following requirements ...

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    1,579

    COM data sharing

    Hello everyone,


    I am developing a COM DLL (native unmanaged C++ using Visual Studio 2005). I have the following requirements and I am wondering what technology should I use to achieve my goal?

    1. The COM DLL will be used by multiple different applications (processes), and for some COM objects, I want the different processes to share a single copy of data (CoClass object instance), and for some other COM objects, I want the different processes to share a separate copy of data (CoClass object instance).

    2. The COM DLL I developed is working passively and providing service to other 3rd party applications when they invoked the DLL. I can not control the applications (can not access or change code). And the only thing I can control is the COM DLL itself. So, the technology I select to use should be transparent to the applications and only need code change in the COM DLL itself.


    thanks in advance,
    George

  2. #2
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,662
    For sharing a single copy of data between processes, you could use a simple file or shared memory.

    gg

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 48
    Last Post: 09-26-2008, 03:45 AM
  2. brace-enclosed error
    By jdc18 in forum C++ Programming
    Replies: 53
    Last Post: 05-03-2007, 05:49 PM
  3. [question]Analyzing data in a two-dimensional array
    By burbose in forum C Programming
    Replies: 2
    Last Post: 06-13-2005, 07:31 AM
  4. Program Crashing
    By Pressure in forum C Programming
    Replies: 3
    Last Post: 04-18-2005, 10:28 PM
  5. Replies: 1
    Last Post: 07-31-2002, 11:35 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21