BYTE * Alloc( DWORD nBytes );
Return Value
A pointer to the memory block that was allocated, or NULL if the allocation failed.
Parameters
nBytes
Number of bytes of memory to be allocated.
Remarks
This function is called by CMemFile member functions. Override this function to implement custom memory allocation. If you override this function, you'll probably want to override Free and Realloc as well.
The default implementation uses the run-time library function malloc to allocate memory.
CMemFile Overview | Class Members | Hierarchy Chart
See Also CMemFile::Free, CMemFile::Realloc, malloc