This documentation is archived and is not being maintained.

COleStreamFile Class

Represents a stream of data (IStream) in a compound file as part of OLE Structured Storage.

class COleStreamFile : public CFile

Name

Description

COleStreamFile::COleStreamFile

Constructs a COleStreamFile object.

Name

Description

COleStreamFile::Attach

Associates a stream with the object.

COleStreamFile::CreateMemoryStream

Creates a stream from global memory and associates it with the object.

COleStreamFile::CreateStream

Creates a stream and associates it with the object.

COleStreamFile::Detach

Disassociates the stream from the object.

COleStreamFile::GetStream

Returns the current stream.

COleStreamFile::OpenStream

Safely opens a stream and associates it with the object.

An IStorage object must exist before the stream can be opened or created unless it is a memory stream.

COleStreamFile objects are manipulated exactly like CFile objects.

For more information about manipulating streams and storages, see the article Containers: Compound Files..

For more information, see IStream and IStorage in the Windows SDK.

Header: afxole.h

Show: