?? bluetooth.h
字號:
// BlueTooth.h: interface for the BlueTooth class.
#if !defined(AFX_BLUETOOTH_H__3DFB2ED2_C217_47FD_AB23_DE2E683CDDA2__INCLUDED_)
#define AFX_BLUETOOTH_H__3DFB2ED2_C217_47FD_AB23_DE2E683CDDA2__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class BlueTooth
{
public:
BlueTooth();
virtual ~BlueTooth();
protected:
CString port_id; //端口號
CString baud_rate; //波特率
CString data_bit; //數據位
CString stop_bit; //停止位
CString check_out; //校驗位*//*
public:
CString str_receive;//接收到的字符
CString str_send;//傳輸的字符
int PortNo,BaudRate,DataBits,StopBits,Parity;
CString PortID,PortIDs[9];
int BaudRates[8];
DCB dcb;
DWORD dwThreadID;
COMMTIMEOUTS CommTimeOuts;
protected:
HICON m_hIcon;
//函數
public:
BOOL OpenPort(CString PortID);//打開端口
BOOL ClosePort();//關閉端口
HANDLE hReadThread;//讀線程
DWORD WritePort(CString strsend); //寫數據
virtual BOOL OnInitDialog();
void OnSetup();
void OnRece();//接收數據
void OnSend(CString strsend);//發送數據
};
#endif // !defined(AFX_BLUETOOTH_H__3DFB2ED2_C217_47FD_AB23_DE2E683CDDA2__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -