Problem referencing a recordset in COM
I have a C++ COM object the returns a recordset by reference. My problem is that I can't seem to get the syntax right to pass in a recordset to use. My code is:
static void Main(string[] args)
{
MYSQLMODLib.MySqlClass getme = new MYSQLMODLib.MySqlClass();
ADODB.Recordset pRs = new ADODB.RecordSet();
bool x;
x = getme.GetAccountInfo( 24513, ref pRs );
Console.WriteLine(x);
Console.ReadLine();
}
I keep getting an error message "Argument '2': cannot convert from 'ref ADODB.Recordset' to 'ref MYSQLMODLib._Recordset'"
What am I doing wrong? I'm banging my head on my desk trying to figure this out....Help!
Thanks!