gusucode.com > 基于C_S模型的Winsock网络编程源码程序 > 基于C_S模型的Winsock网络编程源码程序/Client/MyClientTest/Message.cpp

    // Message.cpp: implementation of the CMessage class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
//#include "chattest.h"
#include "Message.h"


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

IMPLEMENT_DYNCREATE(CMessage,CObject)

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

CMessage::CMessage()
{
	Init();

}

CMessage::~CMessage()
{

}

void CMessage::Init()
{
	m_strText=_T("");
}

void CMessage::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		ar<<m_strText;
	}
	else
	{
		ar>>m_strText;

	}
}

#ifdef _DEBUG
void CMessage::AssertValid() const
{
	CObject::AssertValid();
}
void CMessage::Dump(CDumpContext& dc)const
{
	CObject::Dump(dc);
}
#endif