Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

CArchive::Write

Writes a specified number of bytes to the archive.

void Write( 
   const void* lpBuf, 
   UINT nMax  
);
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.

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.

char pbWrite[100];
memset(pbWrite, 'a', 100);
ar.Write(pbWrite, 100);

Header: afx.h

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.