Hi I do this with a VB applicaton and a Delphi Activex dll.
Basically you are right, what I did was at the active x end, I had an OLEVARIENT
called DBObj.
when alled the activex dll, I passed the reference to the DB.
i.e
OpendOCXDLL(Table)
at the activex dll end, the :-
procedure OpendOCXDLL(Table:OLEVARIENT);
var
DB : OLEVARIENT;
begin
DB := Table;
DB.FieldByName('Name').asstring;
end;
Think...from memorory...this is how I did it. H
Hope it helps a little bit.
Jeremy Coulter
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"