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

📄 comtest.h

📁 用VS_2005做的串口例程源码(Pocket PC 2003 (ARMV4)) 应用程序可以在WINCE5.0以上系统直接运行。
💻 H
字号:
#pragma once



// CComTest

class CComTest : public CWinThread
{
	DECLARE_DYNCREATE(CComTest)

protected:
	CComTest();           // protected constructor used by dynamic creation
	virtual ~CComTest();

public:
	virtual BOOL InitInstance();
	virtual int ExitInstance();

protected:
	DECLARE_MESSAGE_MAP()
public:
	//ostrstream osRead;
	CDialog * m_pwnd;
	HANDLE COMFile;
	BOOL bCONNECTED;
	OVERLAPPED osRead;
public:
	void SetParentWnd(CDialog * pwnd);
	BOOL OpenConnection(CString strPort,UINT nBaudRate);
	BOOL CloseConnection();
	int ReadCommBlock(LPSTR lpszBlock);
	int WriteTTYBlock(CString strWrite,int bufLen);
public:
	virtual int Run();
	virtual BOOL OnIdle(LONG lCount);
};


⌨️ 快捷键说明

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