Is there a way for communication between instances of an ATL based com class 
Author Message
 Is there a way for communication between instances of an ATL based com class

I'm implementing an ATL com class where the client will be Internet Explorer
(I'm creating a Browser Helper Object).  However, I have had the hardest
time trying to communicate between instances of the BHO.  I have tried
CMemfile (too complicated) and NamedObjectFactory (a custom class factory
that stores references to each instance, but, IE gives a access privilege
exception).  Does anyone know of a way to get instances of an atl com class
to communicate (possibly call functions and send data from one instance to
another).  I have tried a variety of hacks (attempting to store each
getclassobject result object, but, this also gives access exceptions).
However, I am thinking that there must be a tried and true waying of
communicating between instances that I am not realizing.  Currently I am
attempting to use callback interfaces, however, how do you make a class call
back itself?  I have probably spent way too much time looking at a small
picture (the NamedObject Factory suggested by Jeff Prosise seemed a keen
solution--I did get my BHO to load, but, IE would promptly give an access
violation).  Any insight would be greatly appreciated.


Fri, 18 Apr 2003 13:29:54 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Is there a way for communication between instances of an ATL based com class

2. ATL COM - Passing ATL COM classes through another ATL COM class in the same app

3. Connection points between a VB COM-based and ATL COM-based (NT Service) MTA

4. ATL and Base Class Pointers in COM

5. creating an instance of a derived class from a base class

6. Exposing instances of ATL objects through a base object (or another)

7. Could someone help me about communication between thread by class instance

8. Howto Expose a normal C++ class with methods via an Interface Class in ATL COM

9. Attach multiple executables to single ATL COM EXE instance

10. running instance of COM object in ATL/MFC server

11. How to enable and create multiple instances of a COM server in ATL

12. ATL COM Class Final Construct dies with Member Accessor Class

 

 
Powered by phpBB® Forum Software