其中m_dbgrid1是DBGRID控件的一个成员,其中参数LPUNKNOWN是什么意思?如何使用。

解决方案 »

  1.   

    you can find its meaning with OLE Viewer.
    ICursor* DataSource;
    it is more easy to bind DBGrid control with RDO control, then you can update datasoure of rdo data control.
    // CRdc m_rdc;
    ...
    m_rdc.SetConnect("Driver={Microsoft Access Driver (*.mdb)};DBQ=C:\\temp\\users.mdb;");
    m_rdc.SetSql("select * From userinfo order by firstname");
    m_rdc.Refresh();
      

  2.   

    如果你用ado的话
    你可以把recordset的接口指针通过这个函数传进去
      

  3.   

    在ODBC中,我曾经这样用过
    m_dbgrid1.SetDataSource(IDC_RDCCUSTOMER);其中IDC_RDCCUSTOMER是同一个连接数据源(DSN)的Remote Data控件的ID