I’m building a COM DLL in Delphi, or to be more precise, an automation server that will be called from Visual Basic code. I need to pass a COM Connection object to the Delphi DLL and then, because of compatibility issues with existing code, I need to use the connection object I received through a TADOConnection Delphi object.
Currently, I‘m receiving the COM object through an OleVariant parameter in my procedure, but I don’t know how to pass it to FConnection:
procedure TSomething.Set_COMConnection(COMConn: OleVariant);
If it’s of any help, the GET function seems to be working OK:
function TSomething.Get_COMConnection: OleVariant;
Result := FConnection.ConnectionObject;
Thank you very much in advance,