www.pudn.com > rs232send and receive.rar > rs232Dlg.h


// rs232Dlg.h : header file 
// 
//{{AFX_INCLUDES() 
#include "mscomm.h" 
//}}AFX_INCLUDES 
 
#if !defined(AFX_RS232DLG_H__F5BF152A_4189_439D_BD47_4E43F8409DF9__INCLUDED_) 
#define AFX_RS232DLG_H__F5BF152A_4189_439D_BD47_4E43F8409DF9__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
///////////////////////////////////////////////////////////////////////////// 
// CRs232Dlg dialog 
 
class CRs232Dlg : public CDialog 
{ 
// Construction 
public: 
	void SaveData(int count,unsigned char *pbval); 
	void Recrequest(); 
	void Transrequest(); 
	void Address(); 
	void Receive(); 
	void Transmitt(); 
	CRs232Dlg(CWnd* pParent = NULL);	// standard constructor 
 
// Dialog Data 
	//{{AFX_DATA(CRs232Dlg) 
	enum { IDD = IDD_RS232_DIALOG }; 
	CString	m_Tdata; 
	CString	m_Rdata; 
	CMSComm	m_Comport; 
	//}}AFX_DATA 
 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CRs232Dlg) 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	HICON m_hIcon; 
 
	// Generated message map functions 
	//{{AFX_MSG(CRs232Dlg) 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam); 
	afx_msg void OnPaint(); 
	afx_msg HCURSOR OnQueryDragIcon(); 
	afx_msg void OnButtonTrans(); 
	afx_msg void OnOnCommMscomm(); 
	afx_msg void OnButtonRec(); 
	DECLARE_EVENTSINK_MAP() 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_RS232DLG_H__F5BF152A_4189_439D_BD47_4E43F8409DF9__INCLUDED_)