CMemFile::Detach

This method closes the memory file and retrieve a pointer to the memory block being used by the CMemFile object.

At a Glance

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

Syntax

BYTE * Detach( );

See Also

CFile::GetLength, CMemFile::Attach