// CommRS232.h: interface for the CCommRS232 class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_COMMRS232_H__B7D595F0_425B_45C2_91E3_816604795E01__INCLUDED_) #define AFX_COMMRS232_H__B7D595F0_425B_45C2_91E3_816604795E01__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "CommAsyn.h" class CCommRS232 : public CCommAsyn { public: virtual int Write(BYTE * pBuf, int len); virtual int Read(BYTE * pBuf, int len); virtual BOOL InitParam(PPORTPARAM pPortParam); CCommRS232(); virtual ~CCommRS232(); private: BOOL m_bOpen; int m_nPort; HANDLE m_hCom; // DWORD inQue, outQue; BOOL CloseComm(); BOOL InitComm(PPORTPARAM pPortParam); protected: }; #endif // !defined(AFX_COMMRS232_H__B7D595F0_425B_45C2_91E3_816604795E01__INCLUDED_)