www.pudn.com > rs232send and receive.rar > RS232Doc.cpp
// RS232Doc.cpp : implementation of the CRS232Doc class
//
#include "stdafx.h"
#include "RS232.h"
#include "RS232Doc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CRS232Doc
IMPLEMENT_DYNCREATE(CRS232Doc, CDocument)
BEGIN_MESSAGE_MAP(CRS232Doc, CDocument)
//{{AFX_MSG_MAP(CRS232Doc)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CRS232Doc construction/destruction
CRS232Doc::CRS232Doc()
{
// TODO: add one-time construction code here
}
CRS232Doc::~CRS232Doc()
{
}
BOOL CRS232Doc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CRS232Doc serialization
void CRS232Doc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
/////////////////////////////////////////////////////////////////////////////
// CRS232Doc diagnostics
#ifdef _DEBUG
void CRS232Doc::AssertValid() const
{
CDocument::AssertValid();
}
void CRS232Doc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CRS232Doc commands