COleStreamFile::OpenStream

Call this member function to open an existing stream. A file exception will be thrown if the open fails and pError is not NULL.

Syntax

BOOL OpenStream( LPSTORAGE lpStorage, LPCTSTR lpszName, DWORD nOpenFlags = modeReadWrite|shareExclusive, 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::CreateStream, COleStreamFile::CreateMemoryStream, CFileException