www.pudn.com > rs232send and receive.rar > rs232dlg1.cpp


// rs232dlg1.cpp : implementation file 
// 
 
#include "stdafx.h" 
#include "RS232.h" 
#include "rs232dlg1.h" 
 
#ifdef _DEBUG 
#define new DEBUG_NEW 
#undef THIS_FILE 
static char THIS_FILE[] = __FILE__; 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
// Crs232dlg dialog 
 
 
Crs232dlg::Crs232dlg(CWnd* pParent /*=NULL*/) 
	: CDialog(Crs232dlg::IDD, pParent) 
{ 
	//{{AFX_DATA_INIT(Crs232dlg) 
		// NOTE: the ClassWizard will add member initialization here 
	//}}AFX_DATA_INIT 
} 
 
 
void Crs232dlg::DoDataExchange(CDataExchange* pDX) 
{ 
	CDialog::DoDataExchange(pDX); 
	//{{AFX_DATA_MAP(Crs232dlg) 
		// NOTE: the ClassWizard will add DDX and DDV calls here 
	//}}AFX_DATA_MAP 
} 
 
 
BEGIN_MESSAGE_MAP(Crs232dlg, CDialog) 
	//{{AFX_MSG_MAP(Crs232dlg) 
	ON_BN_CLICKED(IDC_BUTTON1, OnButton1) 
	//}}AFX_MSG_MAP 
END_MESSAGE_MAP() 
 
///////////////////////////////////////////////////////////////////////////// 
// Crs232dlg message handlers 
 
void Crs232dlg::ProcessData() 
{ 
 
 
 
} 
 
void Crs232dlg::OnButton1()  
{ 
char a[10],str1; 
a[0]='a'; 
a[1]='b'; 
//Cstring str1; 
str1=a[0]+a[1]; 
 
	// TODO: Add your control notification handler code here 
	 
}