请教高手,怎样将.xml文件放到ado记录集上呀?
我是这样写代码的
_RecordsetPtr pRecordset;
CString str=strPath;    //strPath是外部传进来的文件名
CString sFile = str +".xml";
pRecordset2->Open((LPCTSTR)sFile, "Provider=MSPersist", adOpenStatic, adLockReadOnly,   adCmdFile);编译时能通过,但是运行时出错了,不知道什么原因。哪位好心人指教一下,感激不尽!