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

📄 aaadlg.h

📁 本人调试通过的串口通信程序,对初学者有一定的参考价值
💻 H
字号:
// aaaDlg.h : header file
//
//{{AFX_INCLUDES()
#include "mscomm1.h"
//}}AFX_INCLUDES

#if !defined(AFX_AAADLG_H__38AA0DF7_B580_4EE8_91BE_C8E8455C5FC4__INCLUDED_)
#define AFX_AAADLG_H__38AA0DF7_B580_4EE8_91BE_C8E8455C5FC4__INCLUDED_

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


long j,k,l,ct=0;
UINT crc;
UINT count;
BYTE flag;

BYTE countR;


BYTE data[33];
BYTE data0[33];
BYTE data1[33];
BYTE data2[33];
BYTE data3[33];
BYTE data4[33];
BYTE data5[33];
BYTE data6[33];
BYTE data7[33];
BYTE data8[33];
BYTE data9[33];
BYTE data10[33];
BYTE data11[33];
BYTE data12[33];
BYTE data13[33];
BYTE data14[33];
BYTE data15[33];


/////////////////////////////////////////////////////////////////////////////
// CAaaDlg dialog

class CAaaDlg : public CDialog
{
//	FILE* pFile;

// Construction
public:
	void even(unsigned char );
	void calccrc(BYTE crcbuf);

	CAaaDlg(CWnd* pParent = NULL);	// standard constructor
  

// Dialog Data
	//{{AFX_DATA(CAaaDlg)
	enum { IDD = IDD_AAA_DIALOG };
	CButton	m_hex;
	CString	m_ReceiveData;
	CMSComm	m_Comm;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CAaaDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL


// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CAaaDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	virtual void OnOK();
	virtual void OnCancel();
	afx_msg void OnButton1();
	afx_msg void OnOnCommMscomm2();
	afx_msg void OnButton2();
	afx_msg void OnSave();
	afx_msg void OnSend();
	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_AAADLG_H__38AA0DF7_B580_4EE8_91BE_C8E8455C5FC4__INCLUDED_)

⌨️ 快捷键说明

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