正好我也是同样的问题,不过我的是vc写的组件类型是IDispatch怎么转化为dataset!

解决方案 »

  1.   

    你的类似这样不知道行不?
    OleDbDataAdapter custDA = new OleDbDataAdapter();
    DataSet custDS = new DataSet();//Use ADO objects from ADO library (msado15.dll) imported
    // as .NET library ADODB.dll using TlbImp.exe
    ADODB.Connection adoConn = new ADODB.Connection();
    ADODB.Recordset adoRS = new ADODB.Recordset();adoConn.Open("Provider=SQLOLEDB;Data Source=localhost;Initial Catalog=Northwind;Integrated Security=SSPI;", "", "", -1);
    adoRS.Open("SELECT * FROM Customers", adoConn, ADODB.CursorTypeEnum.adOpenForwardOnly, ADODB.LockTypeEnum.adLockReadOnly, 1);custDA.Fill(custDS, adoRS, "Customers");adoConn.Close();
    [