CFile::Open

This method is used in conjunction with the default CFile constructor as a “safe” method for opening a file where a failure is a normal, expected condition.

At a Glance

Header file: Afx.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

virtual BOOL Open( LPCTSTR lpszFileName, UINT nOpenFlags,
CFileException*
pError = NULL );

Remarks

You can use the Cfile::Open method to open files in the Windows CE object store.

See Also

CFile::CFile, CFile::Close