CMemFile::CMemFile

Use this member function to construct a memory file object. The first version opens an empty memory file. The second overloaded version opens the memory file and attaches a block of memory to it.

Syntax

CMemFile( UINT nGrowBytes = 1024 );

CMemFile( BYTE* lpBuffer, UINT nBufferSize, UINT nGrowBytes = 0 );

At a Glance

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

See Also

CMemFile Overview, CMemFile Member Functions, File Service Classes, CMemFile::Attach