Access recordset object, when passed by reference to COM Object

  • Thread starter Thread starter Bala A
  • Start date Start date
B

Bala A

I have an ActiveX EXE. One of the methods in this component has
"Recordset Object" as input parameter which has to be passed by
reference. I have to call this method from C# code.

From C#, how do I pass recordset object by reference and use the
recordset later in C# Code.

Hope my query is clear. Any inputs on this would be greatly
appreciated.

Thanks a lot in advance.
 
Bala,

First, you would have to add a reference to the ADO version that is the
same as the version (or higher) than the one that your ActiveX EXE is
referencing. Once you have that, you can easily make the call by using the
ref keyword (to indicate the parameter is being passed by reference).

Hope this helps.
 
Back
Top