Partager via


COleStreamFile Class

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

class COleStreamFile : public CFile

Members

Public Constructors

Name

Description

COleStreamFile::COleStreamFile

Constructs a COleStreamFile object.

Public Methods

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.

Remarks

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.

Inheritance Hierarchy

CObject

CFile

COleStreamFile

Requirements

Header: afxole.h

See Also

Reference

CFile Class

Hierarchy Chart