COleStreamFile::CreateStream

Call this member function to safely create a new stream in the supplied storage object where a failure is a normal, expected condition. A file exception will be thrown if the open fails and pError is not NULL.

Syntax

BOOL CreateStream( LPSTORAGE lpStorage, LPCTSTR lpszName, DWORD nOpenFlags = modeReadWrite|shareExclusive|modeCreate, CFileException* pError = NULL );

At a Glance

Header file: Afxole.h
Platforms:
Versions: 2.0 and later
Complete documentation: Visual C++ documentation

See Also

COleStreamFile Overview, COleStreamFile Member Functions, File Service Classes, COleStreamFile::OpenStream, COleStreamFile::CreateMemoryStream, CFileException