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

📄 comportio.h

📁 读取GPS数据
💻 H
字号:
// COMPortIO.h: interface for the CCOMPortIO class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_COMPORTIO_H__8CD71916_2578_447E_866C_78852ACCFC59__INCLUDED_)
#define AFX_COMPORTIO_H__8CD71916_2578_447E_866C_78852ACCFC59__INCLUDED_

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

class CCOMPortIO  
{
public:
	BOOL Close();
	BOOL InitComm(const UINT nPort, const UINT nBaud, const UINT nParity, 
		          const UINT nData, const UINT nStop, const BOOL bNoError);
	DWORD Write(const void *pBuff, const DWORD dwLen);
	DWORD Read(void *pData, const DWORD dwLen);

	CCOMPortIO();
	virtual ~CCOMPortIO();
private:
	UINT m_nBaud;
	UINT m_nPort;
	HANDLE m_hFile;
};

#endif // !defined(AFX_COMPORTIO_H__8CD71916_2578_447E_866C_78852ACCFC59__INCLUDED_)

⌨️ 快捷键说明

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