CMemFile::Detach

Call this member function to close the memory file and retrieve a pointer to the memory block being used by the CMemFile object.

Syntax

BYTE * Detach( );

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, CFile::GetLength, CMemFile::Attach