This article is part of the drag and drop interface samples.
- Serializing ASCII Data
- Modeless child dialog
- Modeless sibling dialog
- The drag source
- The MFC drop target
- The TBTextTarget class
Download source files - 24 Kb
CArchive object has methods called
ReadString reads a
complete line stopping at, but not including the Carriage return/Line feed pair.
puts the specified string value into the archive, but without the CR/LF.
detects EOF by a returning zero which can be used in a while-conditional.
This is from the sample application, step zero:
void CInterfaceDoc::Serialize(CArchive& ar)