📄 stacommu.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 "stacommu.h"
/////////////////////////////////////////////////////////////////////////////
// CSTACommu
IMPLEMENT_DYNCREATE(CSTACommu, CWnd)
/////////////////////////////////////////////////////////////////////////////
// CSTACommu properties
CString CSTACommu::GetComport()
{
CString result;
GetProperty(0x1, VT_BSTR, (void*)&result);
return result;
}
void CSTACommu::SetComport(LPCTSTR propVal)
{
SetProperty(0x1, VT_BSTR, propVal);
}
CString CSTACommu::GetComspeed()
{
CString result;
GetProperty(0x2, VT_BSTR, (void*)&result);
return result;
}
void CSTACommu::SetComspeed(LPCTSTR propVal)
{
SetProperty(0x2, VT_BSTR, propVal);
}
CString CSTACommu::GetPhonenum()
{
CString result;
GetProperty(0x3, VT_BSTR, (void*)&result);
return result;
}
void CSTACommu::SetPhonenum(LPCTSTR propVal)
{
SetProperty(0x3, VT_BSTR, propVal);
}
short CSTACommu::GetConnecttimeout()
{
short result;
GetProperty(0x4, VT_I2, (void*)&result);
return result;
}
void CSTACommu::SetConnecttimeout(short propVal)
{
SetProperty(0x4, VT_I2, propVal);
}
short CSTACommu::GetTimeout1()
{
short result;
GetProperty(0x5, VT_I2, (void*)&result);
return result;
}
void CSTACommu::SetTimeout1(short propVal)
{
SetProperty(0x5, VT_I2, propVal);
}
short CSTACommu::GetTimeout2()
{
short result;
GetProperty(0x6, VT_I2, (void*)&result);
return result;
}
void CSTACommu::SetTimeout2(short propVal)
{
SetProperty(0x6, VT_I2, propVal);
}
CString CSTACommu::GetLogFilePath()
{
CString result;
GetProperty(0x7, VT_BSTR, (void*)&result);
return result;
}
void CSTACommu::SetLogFilePath(LPCTSTR propVal)
{
SetProperty(0x7, VT_BSTR, propVal);
}
short CSTACommu::GetOneDayRetry()
{
short result;
GetProperty(0x8, VT_I2, (void*)&result);
return result;
}
void CSTACommu::SetOneDayRetry(short propVal)
{
SetProperty(0x8, VT_I2, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CSTACommu operations
BOOL CSTACommu::Connect()
{
BOOL result;
InvokeHelper(0x9, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
return result;
}
BOOL CSTACommu::Close()
{
BOOL result;
InvokeHelper(0xa, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
return result;
}
CString CSTACommu::RedCurTStr()
{
CString result;
InvokeHelper(0xb, DISPATCH_METHOD, VT_BSTR, (void*)&result, NULL);
return result;
}
BOOL CSTACommu::IsConnected()
{
BOOL result;
InvokeHelper(0xc, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
return result;
}
BOOL CSTACommu::ConnectProcEnd()
{
BOOL result;
InvokeHelper(0xd, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
return result;
}
BOOL CSTACommu::ReadHisTProcEnd()
{
BOOL result;
InvokeHelper(0xe, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
return result;
}
BOOL CSTACommu::HistoryDataReady()
{
BOOL result;
InvokeHelper(0xf, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
return result;
}
BOOL CSTACommu::ReadHisT(LPCTSTR strBeginTime, LPCTSTR strEndTime)
{
BOOL result;
static BYTE parms[] =
VTS_BSTR VTS_BSTR;
InvokeHelper(0x10, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
strBeginTime, strEndTime);
return result;
}
CString CSTACommu::ReadHisTStr(LPCTSTR strType)
{
CString result;
static BYTE parms[] =
VTS_BSTR;
InvokeHelper(0x11, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms,
strType);
return result;
}
BOOL CSTACommu::ReadCurT()
{
BOOL result;
InvokeHelper(0x12, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
return result;
}
BOOL CSTACommu::CurrentDataReady()
{
BOOL result;
InvokeHelper(0x13, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
return result;
}
BOOL CSTACommu::Cmd(LPCTSTR strCmd)
{
BOOL result;
static BYTE parms[] =
VTS_BSTR;
InvokeHelper(0x14, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
strCmd);
return result;
}
BOOL CSTACommu::ReadPastDaysT(short nPastDays)
{
BOOL result;
static BYTE parms[] =
VTS_I2;
InvokeHelper(0x15, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
nPastDays);
return result;
}
BOOL CSTACommu::ProcessEnd()
{
BOOL result;
InvokeHelper(0x16, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
return result;
}
BOOL CSTACommu::AdjustTime()
{
BOOL result;
InvokeHelper(0x17, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
return result;
}
void CSTACommu::AboutBox()
{
InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -