CArchive::Write
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

CArchive::Write

Writes a specified number of bytes to the archive.

void Write(
   const void* lpBuf,
   UINT nMax 
);

Parameters

lpBuf
A pointer to a user-supplied buffer that contains the data to be written to the archive.
nMax
An integer that specifies the number of bytes to be written to the archive.

Remarks

The archive does not format the bytes.

You can use the Write member function within your Serialize function to write ordinary structures that are contained in your objects.

Example

extern CArchive ar;
char pb[100];
ar.Write( pb, 100 );

See Also

CArchive Overview | Class Members | Hierarchy Chart | CArchive::Read

Show:
© 2016 Microsoft