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

📄 writeflashdlg.h

📁 用vc自己编写flash烧录的源代码 可以实际使用进行flash烧写
💻 H
字号:
// writeflashDlg.h : header file
//
#include "SerialPort.h"
#if !defined(AFX_WRITEFLASHDLG_H__4EA0159A_DD9F_46FF_96B1_22B01BFE1B0E__INCLUDED_)
#define AFX_WRITEFLASHDLG_H__4EA0159A_DD9F_46FF_96B1_22B01BFE1B0E__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CWriteflashDlg dialog

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

// Dialog Data
	//{{AFX_DATA(CWriteflashDlg)
	enum { IDD = IDD_WRITEFLASH_DIALOG };
	CComboBox	m_combport;
	CProgressCtrl	m_progress;
	CString	m_rxdata;
	int		m_page;
	long	m_count;
	int		m_count1;
	BYTE	m_sendone;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CWriteflashDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL
	CSerialPort m_ComPort;
	char m_chChecksum; //用于COM1的校验和计算
	CString m_strRXhhCOM1; //用于存放COM1接收的半BYTE校验字节hh
	CString singlestring; //COM1接收数据

	UINT m_nRXErrorCOM1; //COM1接收数据错误帧数

	UINT m_nRXCounterCOM1; //COM1接收数据错误帧数
	UINT pagecount,totalpage;
	long int totalcount;
	char *tempf;
	BOOL showflag, oxflag,timeflag,txflag;
	long int count;
	int  incount,bi_count;
	int  linecount;
	int startflag;
	int comport;
	char senddata[2];
// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CWriteflashDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnFileopen();
	afx_msg void OnSelchangeComboport();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnCheck();
	afx_msg LONG OnCommunication(WPARAM ch, LPARAM port);
	afx_msg void OnStop();
	afx_msg void OnClear();
	afx_msg void OnEnable();
	afx_msg void OnNull();
	afx_msg void OnWrite();
	afx_msg void OnSendone();
	afx_msg void OnStopdown();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_WRITEFLASHDLG_H__4EA0159A_DD9F_46FF_96B1_22B01BFE1B0E__INCLUDED_)

⌨️ 快捷键说明

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