COleStreamFile::CreateMemoryStream

BOOL CreateMemoryStream( CFileException* pError = NULL );

Return Value

Nonzero if the stream is created successfully; otherwise 0.

Parameters

pError

Points to a CFileException object or NULL that indicates the completion status of the create operation. Supply this parameter if you want to monitor possible exceptions generated by attempting to create the stream.

Remarks

Safely creates a new stream out of global, shared memory where a failure is a normal, expected condition. The memory is allocated by the OLE subsystem.

For more information, see CreateStreamOnHGlobal in the OLE 2 Programmer’s Reference, Volume 1.

COleStreamFile OverviewClass MembersHierarchy Chart

See Also   COleStreamFile::OpenStream, COleStreamFile::CreateStream, CFileException