ADOStreamConstruction Interface
The ADOStreamConstruction interface is used to construct an ADO Stream object from an OLE DB IStream object in a C/C++ application.
This interface supports the following properties:
Properties
Stream | Read/Write. Gets/sets an OLE DB IStream object. |
Methods
None.
Events
None.
Remarks
Given an OLE DB IStream object (pStream
), the construction of an ADO Stream object (adoStr
) amounts to the following three basic operations:
Create an ADO Stream object:
Stream20Ptr adoStr; adoStr.CreateInstance(__uuidof(Stream));
Query the IADOStreamConstruction interface on the Stream object:
adoStreamConstructionPtr adoStrConstruct=NULL; adoStr->QueryInterface(__uuidof(ADOStreamConstruction), (void**)&adoStrConstruct);
Call the
IADOStreamConstruction::put_Stream
property method to set the OLE DBIStream
object on the ADOStream
object:IUnknown *pUnk=NULL; pStream->QueryInterface(IID_IUnknown, (void**)&pUnk); adoStrConstruct->put_Stream(pUnk);
The resultant adoStr
object now represents the ADO Stream object constructed from the OLE DB IStream object.
Requirements
Version: ADO 2.0 and later
Library: msado15.dll
UUID: 00000283-0000-0010-8000-00AA006D2EA4