Z
zj12345
Unregistered / Unconfirmed
GUEST, unregistred user!
如果用recordset中的open方法直接打开XML中的DOMDocument对象的话,
vb的语法是:
Dim XMLDoc as AdoDb.DomDocument
Dim rs as AdoDb.RecordSet
rs.open XMLDoc
vc的语法是:
_RecordsetPtr pRs;
hr = pConn.CreateInstance(__uuidof(Connection));
hr = pRs.CreateInstance(__uuidof(Recordset));
hr = pRs->Open(pXMLDOMDoc.GetInterfacePtr(), vtMissing,
adOpenForwardOnly, adLockReadOnly, adCmdFile);
请问Delphi中应该如何写才能成功打开DOMDocument对象?
vb的语法是:
Dim XMLDoc as AdoDb.DomDocument
Dim rs as AdoDb.RecordSet
rs.open XMLDoc
vc的语法是:
_RecordsetPtr pRs;
hr = pConn.CreateInstance(__uuidof(Connection));
hr = pRs.CreateInstance(__uuidof(Recordset));
hr = pRs->Open(pXMLDOMDoc.GetInterfacePtr(), vtMissing,
adOpenForwardOnly, adLockReadOnly, adCmdFile);
请问Delphi中应该如何写才能成功打开DOMDocument对象?