msg.cpp

来自「这是从网上down的关于vc的自学书籍希望对大家能有帮助 独乐乐 不如大家乐」· C++ 代码 · 共 35 行

CPP
35
字号
// Msg.cpp: implementation of the CMsg class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "Server.h"
#include "Msg.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CMsg::CMsg()
{
	m_strMsg = _T("");		// 初始化消息文本为空
}

CMsg::~CMsg()
{
}

void CMsg::Serialize(CArchive &ar)	// 消息文本串行化
{	
	if (ar.IsStoring())
		ar << m_strMsg;
	else
		ar >> m_strMsg;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?