网站首页  词典首页

请输入您要查询的计算机术语:

 

术语 CString::operator 3c3c,3d3d
释义 CString::operator <<, >>

friend CArchive& operator <<( CArchive& ar, const CString& string );
  throw( CArchiveException );
friend CArchive& operator >>( CArchive& ar, CString& string );
  throw( CArchiveException );
friend CDumpContext& operator <<( CDumpContext& dc, const CString& string );

说明:
CString插入操作符(<<)支持向一个存档进行诊断转储和存储。提取操作符支持从一个文档中进行装入。
CDumpContext操作符只有在Microsoft基础类库的调试版中才有效。

示例:
下面的例子说明了如何使用CString::operator <<, >>。
// CString::operator <<, >>示例:
extern CArchive ar;
CString s( "abc" );
#ifdef _DEBUG
  afxDump << s; // Prints the value (abc)
  afxDump << &s; // Prints the address
#endif
if( ar.IsLoading() ) ar >> s;
else ar << s;

请参阅:CDumpContext
随便看

 

MFC类库中文详解手册包含4274条MFC类库参考词条,基本涵盖了Microsoft基本类库中的类、全局函数、全局变量和宏的内容,是计算机编程的有利工具。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 10:29:43