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

📄 conmunication.h

📁 是本人编写的串行通信的程序
💻 H
字号:
//{{AFX_INCLUDES()
#include "mscomm.h"
//}}AFX_INCLUDES
#if !defined(AFX_CONMUNICATION_H__835CD567_F1A1_4571_8837_C3765512DF77__INCLUDED_)
#define AFX_CONMUNICATION_H__835CD567_F1A1_4571_8837_C3765512DF77__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Conmunication.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CConmunication dialog

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

// Dialog Data
	//{{AFX_DATA(CConmunication)
	enum { IDD = IDD_DIALOG_Conmunication };
	CButton	m_Send;
	CButton	m_Clear;
	CButton	m_Close;
	CStatic	m_Label;
	CEdit	m_ConEdit;
	CProgressCtrl	m_Progress;
	CString	m_ShowSend;
	CString	m_ShowReceive;
	CMSComm	m_MsComm;
	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CConmunication)
	virtual void OnCancel();
	virtual void OnOK();
	afx_msg void OnBUTTONSend();
	afx_msg void OnBUTTONClr();
	afx_msg void OnBUTTONClose();
	afx_msg void OnRadio1();
	virtual BOOL OnInitDialog();
	afx_msg void OnOnCommMscomm1();
	afx_msg void OnRadio2();
	afx_msg void OnOutofmemoryProgress1(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void ReadData();
	afx_msg void OnRadio3();
	afx_msg void OnRadio4();
	afx_msg void OnRadio5();
	afx_msg void OnRadio6();
	afx_msg void OnRadio7();
	afx_msg void OnRadio8();
	afx_msg void OnRadio9();
	DECLARE_EVENTSINK_MAP()
	//}}AFX_MSG
    
	DECLARE_MESSAGE_MAP()
public:
	    virtual ~CConmunication();
public:
        CString m_Rate;
		CString strFileName;
        BYTE bindata[16];
		void InitProgress(int begin,int max);
//		BOOL  bReady;
		CByteArray bytOutArr;
		COleVariant varOut;
		HWND hWnd;
		int times;
		char *buf;
		BOOL bLock1,bLock12,bLock123;
		BYTE ControlByte;
		unsigned long numberofbytes;
    	long StartAddr,EndAddr;
	    int comport,overtime,addrsendcount,readcount;
    	BYTE sndbuf[1];
		BOOL bVerify;
		BOOL bSending;
		BOOL bVerifyData;
		BOOL bFinish;
        DWORD FileLength;
		BOOL ReSend;
		BOOL bThread;
		BOOL bSended;
};

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

#endif // !defined(AFX_CONMUNICATION_H__835CD567_F1A1_4571_8837_C3765512DF77__INCLUDED_)

⌨️ 快捷键说明

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