Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Getting ADO events in a DLL???

1 view
Skip to first unread message

Sean Kenwrick

unread,
Oct 17, 2006, 9:23:08 AM10/17/06
to
Hi

I am writing a DLL that dynamically creates an ADO connection something like
this:

TADOConnection * ADOp;

CoInitialize(NULL);
TADOConnection * ADOp = new TADOConnection(NULL);

I then go on to populated the properties of the ADOp and call the open
method, and this all works well.

But how do I recieve and process the ADO events like OnConnectionComplete,
OnWillConnect etc.?

Somehow I need to associate an event handler with the dynamically created
Connection object and I don't know how to do this.. any help would be
appreciated...


Regards
Sean Kenwrick


0 new messages