我在VC使用OLEDB 访问ACCESS数据库,用OLEDB的GetNextRows函数只能返回一条记录,请问怎么才能让这个函数返回多条记录啊(用JET OLE DB 4.0来连接的)

解决方案 »

  1.   

    pIRowset->GetNextRows(                        NULL,                        0,                        10,// 你的這個參數的值是多少? 這是要求返回的記錄數  !!!                        &lNumRowsRetrieved,// 這是實際返回的記錄數  !!!                        &pRows);
      

  2.   

    是10000,无论设多少都返回一条记录,但连MS SQL则没有问题
      

  3.   

    JET OLE DB 4.0 可能是這樣的?它在打 IRowset 打開記錄集時也不能返回記錄集有多少條記錄對不?
      

  4.   

    c:\program files\windows ce tools\wce420\shuangma\include\armv4i\ssceoledb.h(74) : error C2061: syntax error : identifier 'DBPROPSET'
    c:\program files\windows ce tools\wce420\shuangma\include\armv4i\ssceoledb.h(100) : error C2061: syntax error : identifier 'HCHAPTER'
    c:\program files\windows ce tools\wce420\shuangma\include\armv4i\ssceoledb.h(112) : error C2061: syntax error : identifier 'HCHAPTER'
    c:\program files\windows ce tools\wce420\shuangma\include\armv4i\ssceoledb.h(116) : error C2061: syntax error : identifier 'HCHAPTER'
    出现这个问题怎么解决阿