Is there a way for communication between instances of an ATL based com class
Is there a way for communication between instances of an ATL based com class
Author
Message
Lenworth Henr #1 / 2
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.