// Sys.h : main header file for the SYS application // #if !defined(AFX_SYS_H__D485DEFD_85AB_11D1_B878_A68EB300DD63__INCLUDED_) #define AFX_SYS_H__D485DEFD_85AB_11D1_B878_A68EB300DD63__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #ifndef __AFXWIN_H__ #error include 'stdafx.h' before including this file for PCH #endif #include "resource.h" // main symbols ///////////////////////////////////////////////////////////////////////////// // CSysApp: // See Sys.cpp for the implementation of this class // class CSysApp : public CWinApp { public: HANDLE m_hDevice; CSysApp(); public: CMultiDocTemplate* pIOTemplate; HANDLE m_hMutex; public: int m_CurrentDeviceID; // 记录当前设备ID号 public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CSysApp) public: virtual BOOL InitInstance(); virtual int ExitInstance(); //}}AFX_VIRTUAL // Implementation //{{AFX_MSG(CSysApp) afx_msg void OnAppAbout(); afx_msg void OnOpenDIO(); afx_msg void OnUpdateOpenDIO(CCmdUI* pCmdUI); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; ///////////////////////////////////////////////////////////////////////////// extern LONG ReadSizeWords; // 读入的数据长度 //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_SYS_H__D485DEFD_85AB_11D1_B878_A68EB300DD63__INCLUDED_)