serport.h

来自「GPS定位系统,可以与GPS相连接,也可以与与电子地图等相连接.」· C头文件 代码 · 共 40 行

H
40
字号
/*
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 + =
减小字号Ctrl + -
显示快捷键?