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.
CMemFile( UINT nGrowBytes = 1024 );
CMemFile( BYTE* lpBuffer, UINT nBufferSize, UINT nGrowBytes = 0 );
Header file: | Afx.h |
Platforms: | |
Versions: | 2.0 and later |
Complete documentation | Visual C++ documentation |
CMemFile Overview, CMemFile Member Functions, File Service Classes, CMemFile::Attach