m_pRecordset->Open("select count(*) from 供应商",
_variant_t((IDispatch*)m_pConnection,true),adOpenDynamic,adLockOptimistic,adCmdText);
m_pRecordset->??? //怎样得到上面语句的返回值???
參考答案:为什么不给结果一个名字呢 ...?
m_pRecordset->Open("select count(*) as yanzi from 供应商",
_variant_t((IDispatch*)m_pConnection,true),adOpenDynamic,adLockOptimistic,adCmdText);
然后取 yanzi 的值就可以了 ...