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

How to bind events (AXEventSink?) to ADODB_Recordset, ADODB_Connection objects?

1 view
Skip to first unread message

ale...@mail.ru

unread,
Jun 28, 2008, 7:46:27 AM6/28/08
to
First thanks to Dolphin team who shipped Dolphin smalltalk with an ADO
package.

So the problem. AXEventSink was created to do subj. work as I know.
How to bind AXEventSink instance to ADODB_Recordset object?

Looks like this:
adoConn := ADODB_Connection new.
eventObj := AXEventSink target: adoConn sourceTypeInfo: <WHAT I NEED
TO CODE HERE???>

Thanks you all for answers.

Udo Schneider

unread,
Jun 30, 2008, 8:47:52 AM6/30/08
to
Alex,


> So the problem. AXEventSink was created to do subj. work as I know.
> How to bind AXEventSink instance to ADODB_Recordset object?
>
> Looks like this:
> adoConn := ADODB_Connection new.
> eventObj := AXEventSink target: adoConn sourceTypeInfo: <WHAT I NEED
> TO CODE HERE???>

The following should work:

ADODBLib sourceInterfaces. "This gives you all the the source (event)
interfaces for this TypeLin. On my PC this gives
a Set(a TKindDispatchAnalyzer('ConnectionEvents') a
TKindDispatchAnalyzer('RecordsetEvents'))"

adoConn := ADODB_Connection new.
sink := AXEventSink target: adoConn sourceTypeInfo: (ADODBLib at:
'ConnectionEvents') .
sink connect: adoConn.

CU,

Udo

ale...@mail.ru

unread,
Jul 7, 2008, 3:50:26 AM7/7/08
to
Thank you very much, Udo, it's works!
0 new messages