🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #398

Getting ADO events in a DLL???

#398
From: s.kenwrick
Date: Tue, 17 Oct 2006 15:31
24 lines
1664 bytes
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
Technical Details
Message-ID: <1161099090.459997.102700@m7g2000cwm.googlegroups.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!m7g2000cwm.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10698b,b68f8160aec90a52,start
X-Google-Attributes: gid10698b,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!postnews.google.com!m7g2000cwm.googlegroups.com!not-for-mail
From: s.kenwrick@btinternet.com
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Getting ADO events in a DLL???
Date: 17 Oct 2006 08:31:30 -0700
Organization: http://groups.google.com
Lines: 25
Message-ID: <1161099090.459997.102700@m7g2000cwm.googlegroups.com>
NNTP-Posting-Host: 86.146.221.59
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1161099095 2072 127.0.0.1 (17 Oct 2006 15:31:35 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 17 Oct 2006 15:31:35 +0000 (UTC)
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; YPC 3.0.2; FDM),gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: m7g2000cwm.googlegroups.com; posting-host=86.146.221.59;
   posting-account=yWLP7w0AAACaPihRkBtT0_EvcWbbMTaJ