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

📄 comalarmbox.h

📁 在监控行业中比较流行的智敏报警盒
💻 H
字号:
#if !defined(AFX_COMALARMBOX_H__584799A3_C913_4C11_829F_5A0609312484__INCLUDED_)
#define AFX_COMALARMBOX_H__584799A3_C913_4C11_829F_5A0609312484__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// ComAlarmBox.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CComAlarmBox 
static	short nReadBack;

class CComAlarmBox : public CWnd
{
protected:
	DECLARE_DYNCREATE(CComAlarmBox)
public:
	HANDLE m_hComm;

// Attributes
public:

// Operations

	short DataIn();
	BOOL Init(short CardNumber);
	void DataOut(short data);
	void Exit();
    short ReadBack();

protected:
    BOOL SendData(int nDeviceNo,int nCommand,int nData1,int nData2) ;
    BOOL ReadData(int nDeviceNo,BOOLEAN *AlarmNum) ;
    BOOL Connect(CString comport,int btl);
    BOOL Disconnect();
    BOOL ReadCamera(BYTE data[32],  DWORD dwBytes);
    BOOL TalkToCamera(BYTE Di[32],int nLen);
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_COMALARMBOX_H__584799A3_C913_4C11_829F_5A0609312484__INCLUDED_)

⌨️ 快捷键说明

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