www.pudn.com > AcquireEthernetCode.rar > GetPacketDoc.cpp


// GetPacketDoc.cpp : implementation of the CGetPacketDoc class 
// 
 
#include "stdafx.h" 
#include "GetPacket.h" 
 
#include "GetPacketDoc.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// CGetPacketDoc 
 
IMPLEMENT_DYNCREATE(CGetPacketDoc, CDocument) 
 
BEGIN_MESSAGE_MAP(CGetPacketDoc, CDocument) 
	//{{AFX_MSG_MAP(CGetPacketDoc) 
		// NOTE - the ClassWizard will add and remove mapping macros here. 
		//    DO NOT EDIT what you see in these blocks of generated code! 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// CGetPacketDoc construction/destruction 
 
CGetPacketDoc::CGetPacketDoc() 
{ 
} 
 
CGetPacketDoc::~CGetPacketDoc() 
{ 
} 
 
BOOL CGetPacketDoc::OnNewDocument() 
{ 
	if (!CDocument::OnNewDocument()) 
		return FALSE; 
 
	// TODO: add reinitialization code here 
	// (SDI documents will reuse this document) 
	//SetTitle("GetPacket 1.0"); 
	return TRUE; 
} 
 
 
 
///////////////////////////////////////////////////////////////////////////// 
// CGetPacketDoc serialization 
 
void CGetPacketDoc::Serialize(CArchive& ar) 
{ 
	if (ar.IsStoring()) 
	{ 
		// TODO: add storing code here 
	} 
	else 
	{ 
		// TODO: add loading code here 
	} 
} 
 
///////////////////////////////////////////////////////////////////////////// 
// CGetPacketDoc diagnostics 
 
#ifdef _DEBUG 
void CGetPacketDoc::AssertValid() const 
{ 
	CDocument::AssertValid(); 
} 
 
void CGetPacketDoc::Dump(CDumpContext& dc) const 
{ 
	CDocument::Dump(dc); 
} 
#endif //_DEBUG 
 
///////////////////////////////////////////////////////////////////////////// 
// CGetPacketDoc commands