⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 serialdlg.h

📁 华中科技大学计算机学院接口课程设计.vc制作,上位机下位机模拟商场贵宾卡系统.使用access数据库.
💻 H
字号:
// SerialDlg.h : header file
//

#if !defined(AFX_SERIALDLG_H__18D9AE5B_C0C9_414C_9BDD_FAB924CA0C22__INCLUDED_)
#define AFX_SERIALDLG_H__18D9AE5B_C0C9_414C_9BDD_FAB924CA0C22__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CSerialDlg dialog

class CSerialDlg : public CDialog
{
// Construction
public:
	CSerialDlg(CWnd* pParent = NULL);	// standard constructor

	bool working;

	int iBaudrate;	//波特率
	int iDataBits;	//数据位
	int iParity;	//校位验
	int iStopBits;	//停止位

	int iTextLengthOld ;
	int iTextLengthNew ;

	TCHAR tchSend ;
	char chSend ;
	static TCHAR tchReceive ;
	static char chReceive ;

	time_t tFirst, tSecond ;
	CWnd* pWndSend ;
	CWnd* pWndReceive ;

	static UINT Receiving(LPVOID );
	VOID OnReceive();

// Dialog Data
	//{{AFX_DATA(CSerialDlg)
	enum { IDD = IDD_SERIAL_DIALOG };
	CEdit	m_ctrlEditSend;
	CButton	m_IDCANCEL;
	CButton	m_IDOK;
	CString	m_strSend;
	long	m_wjz;
	long	m_add;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSerialDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL
	CDatabase dbOdbc;
	CTest2222Set *DBSet;

// Implementation
protected:
	HICON m_hIcon;

	CString m_strMessage;
	int m_IndexNum;

	// Generated message map functions
	//{{AFX_MSG(CSerialDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	virtual void OnOK();
	virtual void OnCancel();
	afx_msg void OnChangeEditSend();
	afx_msg void OnSend(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnConn();
	afx_msg void OnButton1();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SERIALDLG_H__18D9AE5B_C0C9_414C_9BDD_FAB924CA0C22__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -