COleStreamFile::CreateStream

This method safely creates 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.

At a Glance

Header file: Afxole.h
Platforms: H/PC 2.0, H/PC Pro
Windows CE versions: 2.0 and later
Complete documentation: Visual C++ documentation

Syntax

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

See Also

COleStreamFile::OpenStream, COleStreamFile::CreateMemoryStream, CFileException