// DIODlg.h : header file // #pragma once // CDIODlg dialog class CDIODlg : public CDialogEx { // Construction public: CDIODlg(CWnd* pParent = NULL); // standard constructor // Dialog Data enum { IDD = IDD_DIO_DIALOG }; protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support // Implementation protected: HICON m_hIcon; // Generated message map functions virtual BOOL OnInitDialog(); afx_msg void OnSysCommand(UINT nID, LPARAM lParam); afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); DECLARE_MESSAGE_MAP() public: afx_msg void OnBnClickedPerformIO(); long NumCards; // Number of cards found unsigned long Address; // This the result of findcards and the address used bool RunFlag; #define MAX_CARDS 10 struct TCardData { bool IsValid; bool IsSelected; unsigned long DeviceID; unsigned long Base; }; TCardData CardData[MAX_CARDS]; // only set up for 10 max here void FindCardsWDM(void); CComboBox m_AddressCombo; CString m_AddressSelection; CString m_InputA; CString m_InputB; CString m_OutputA; CString m_StatusEdit; afx_msg void OnTimer(UINT_PTR nIDEvent); CButton m_TimerButton; afx_msg void OnCbnSelchangeCombo1(); CEdit m_StatusControl; CString m_CardName; };