ADODB Interop

csharp United States
  • 17 years ago

    I'm having Interop "issues".  I need a clue!


    It is on a project where I have some legacy COM+ objects with which I have to work.  They require an recordset to be passed and they return a disconnected RS.  Here is how I do it:


    object objRS=null;
    ADODB.Recordset rs = null;
    strSQL = "SELECT...";
    objANFI.SQLQuery(strSQL, ref objRS);        // This works great


    // Now comes my "conversion" to a recordset
    rs = (ADODB.Recordset)objRS;    // This works on my development machine -- but won't deploy!


    Does anyone have a better way to do this?  Thank you in advance.


    Brett

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Debuggers don't remove bugs. They only show them in slow motion.”