Click here to Skip to main content
15,886,258 members
Articles / Desktop Programming / MFC

Hardware Interface Programming in VC++ - Part I (Port Access)

Rate me:
Please Sign up or sign in to vote.
4.52/5 (83 votes)
9 Jun 20025 min read 463.4K   12K   107  
A simple port access tutorial for the hardware interface developer
// ppscDlg.h : header file
//

#if !defined(AFX_PPSCDLG_H__3331B5E8_7652_11D6_9425_C8FFA0CA2832__INCLUDED_)
#define AFX_PPSCDLG_H__3331B5E8_7652_11D6_9425_C8FFA0CA2832__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CPpscDlg dialog

class CPpscDlg : public CDialog
{
// Construction
public:
	int nPin15;
	int nPin13;
	int nPin12;
	int nPin11;
	int nPin10;
	int in379;
	CPpscDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CPpscDlg)
	enum { IDD = IDD_PPSC_DIALOG };
	CButton	m_Pin15;
	CButton	m_Pin13;
	CButton	m_Pin12;
	CButton	m_Pin11;
	CButton	m_Pin10;
	//}}AFX_DATA

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

// Implementation
protected:
	HICON m_hIcon;

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

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

#endif // !defined(AFX_PPSCDLG_H__3331B5E8_7652_11D6_9425_C8FFA0CA2832__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
India India
Loving Electronic more than VC++ but getting more work in software field. Now going towards ASP and Database.

Comments and Discussions