📄 hdhdlc.cpp
字号:
// Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
// NOTE: Do not modify the contents of this file. If this class is regenerated by
// Microsoft Visual C++, your modifications will be overwritten.
#include "stdafx.h"
#include "hdhdlc.h"
/////////////////////////////////////////////////////////////////////////////
// CHDHdlc
IMPLEMENT_DYNCREATE(CHDHdlc, CWnd)
/////////////////////////////////////////////////////////////////////////////
// CHDHdlc properties
BOOL CHDHdlc::GetCheckError()
{
BOOL result;
GetProperty(0x1, VT_BOOL, (void*)&result);
return result;
}
void CHDHdlc::SetCheckError(BOOL propVal)
{
SetProperty(0x1, VT_BOOL, propVal);
}
short CHDHdlc::GetTagAddrOfRecv()
{
short result;
GetProperty(0x2, VT_I2, (void*)&result);
return result;
}
void CHDHdlc::SetTagAddrOfRecv(short propVal)
{
SetProperty(0x2, VT_I2, propVal);
}
short CHDHdlc::GetRemoteAddr()
{
short result;
GetProperty(0x3, VT_I2, (void*)&result);
return result;
}
void CHDHdlc::SetRemoteAddr(short propVal)
{
SetProperty(0x3, VT_I2, propVal);
}
long CHDHdlc::GetRecvCmd()
{
long result;
GetProperty(0x4, VT_I4, (void*)&result);
return result;
}
void CHDHdlc::SetRecvCmd(long propVal)
{
SetProperty(0x4, VT_I4, propVal);
}
CString CHDHdlc::GetCommKey()
{
CString result;
GetProperty(0x5, VT_BSTR, (void*)&result);
return result;
}
void CHDHdlc::SetCommKey(LPCTSTR propVal)
{
SetProperty(0x5, VT_BSTR, propVal);
}
BOOL CHDHdlc::GetSendCommKey()
{
BOOL result;
GetProperty(0x6, VT_BOOL, (void*)&result);
return result;
}
void CHDHdlc::SetSendCommKey(BOOL propVal)
{
SetProperty(0x6, VT_BOOL, propVal);
}
short CHDHdlc::GetLocalAddr()
{
short result;
GetProperty(0x7, VT_I2, (void*)&result);
return result;
}
void CHDHdlc::SetLocalAddr(short propVal)
{
SetProperty(0x7, VT_I2, propVal);
}
long CHDHdlc::GetSendCmd()
{
long result;
GetProperty(0x8, VT_I4, (void*)&result);
return result;
}
void CHDHdlc::SetSendCmd(long propVal)
{
SetProperty(0x8, VT_I4, propVal);
}
short CHDHdlc::GetTagAddrOfSend()
{
short result;
GetProperty(0x9, VT_I2, (void*)&result);
return result;
}
void CHDHdlc::SetTagAddrOfSend(short propVal)
{
SetProperty(0x9, VT_I2, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CHDHdlc operations
BOOL CHDHdlc::WriteHDLCFrame(long* Buffer, long BufferLength)
{
BOOL result;
static BYTE parms[] =
VTS_PI4 VTS_I4;
InvokeHelper(0xa, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
Buffer, BufferLength);
return result;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -