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

📄 sstardlg.h

📁 研华USB数据采集器4711程序.源码
💻 H
字号:
// SSTARDlg.h : header file
//

#if !defined(AFX_SSTARDLG_H__CA496893_5829_4FB3_B8F1_088E0B7C1501__INCLUDED_)
#define AFX_SSTARDLG_H__CA496893_5829_4FB3_B8F1_088E0B7C1501__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CSSTARDlg dialog
//////////////////////////////////////////////////////////////////////////
//添加USB4711A设备头文件
#include "driver.h"
#include "os.h"
#include "AdoData.h"	// Added by ClassView
/////////////////////////////////////////////////////////////////////////////


#define  MAX_DEVICES 100

class CSSTARDlg : public CDialog
{
// Construction
public:
	CString strtemp;
	CStringArray m_USB4711A;
	CString str_fVoltage;
	void AddRecord(CString str);
	CAdoData *AdoData;
	BOOL disposal_time();
	BOOL InitDeviceListComboBox();
	CSSTARDlg(CWnd* pParent = NULL);	// standard constructor

	CButton *p_Button_needsave;
	CButton *p_Button_unneedsace;
	
	//////////////////////////////////////////////////////////////////////////
	//////////////////////////////////////////////////////////////////////////
	LONG        DriverHandle;          // driver handle
	BOOL        bRun;                  // flag for running
	USHORT      gwDevice;
	USHORT		gwSubDevice;			// Device index
	USHORT      gwChannel;              // input channel
	USHORT      gwGain;                 // gain index
	SHORT       gnNumOfDevices;
	SHORT       gnNumOfSubdevices;		// number of installed devices
	USHORT      gwScanTime;             // scan time
	DWORD       gdwStartTime;           // start time
	DWORD       gdwElapseTime;          // elapse time
	USHORT      gwOverrunCount;         // overrun count
	
	LRESULT     ErrCde;                     // Return error code
	char        szErrMsg[80];               // Use for MESSAGEBOX function
	
	DEVLIST     DeviceList[MAX_DEVICES];
	DEVLIST     SubDeviceList[MAX_DEVICES];
	
	//HANDLE      hInst;                      // current instance
	//HWND        hMainWnd;                   // main window handle
	
	
	
	
	DWORD           dwCurrentTime;
	DWORD           dwErrorTime;
	BOOL            bTimerOverrun;
	float           fVoltage;	 
	char			szBuffer[40];
	DWORD			dwIndex;
	
	//////////////////////////////////////////////////////////////////////////
	CString str_editChannel;
	CString	str_editScantime;
	
// Dialog Data
	//{{AFX_DATA(CSSTARDlg)
	enum { IDD = IDD_SSTAR_DIALOG };
	CButton	m_button_Stop;
	CButton	m_button_Start;
	CEdit	m_editShow;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CSSTARDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg BOOL OnButStart();
	afx_msg BOOL OnButStop();
	afx_msg void OnButDeivceset();
	afx_msg void OnButScanset();
	afx_msg void OnTimer(UINT nIDEvent);
	virtual void OnCancel();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_SSTARDLG_H__CA496893_5829_4FB3_B8F1_088E0B7C1501__INCLUDED_)

⌨️ 快捷键说明

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