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

📄 serport.h

📁 在你的应用程序中添加对GPS(全球定位系统)的支持
💻 H
字号:
/*
Module : SERPORT.H
Purpose: Simple MFC class to support access to GPS receivers via serial ports
         Please note this is not a generic serial port class
Created: PJN / 28-12-1997
History: None

Copyright (c) 1997 by PJ Naughter.  
All rights reserved.

*/

#ifndef __SERPORT_H__
#define __SERPORT_H__


////////////////////////// Includes //////////////////////////////////////
#include <gps.h>


////////////////////////// Classes ///////////////////////////////////////

class CGpsSerialPort : public CObject
{
public:
//constructors / Destructors
  CGpsSerialPort();
  ~CGpsSerialPort();

//methods
  BOOL Open(LPCGPSDEVINFO lpDevInfo);
  void Close();
  DWORD Read(LPBYTE psBuffer, UINT nBytes) const;

protected:
  HANDLE m_hPort;
};


#endif //__SERPORT_H__

⌨️ 快捷键说明

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