📄 xsockserver.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 "xsockserver.h"
/////////////////////////////////////////////////////////////////////////////
// CXSockServer
IMPLEMENT_DYNCREATE(CXSockServer, CWnd)
/////////////////////////////////////////////////////////////////////////////
// CXSockServer properties
CString CXSockServer::GetLocalAddress()
{
CString result;
GetProperty(0x1, VT_BSTR, (void*)&result);
return result;
}
void CXSockServer::SetLocalAddress(LPCTSTR propVal)
{
SetProperty(0x1, VT_BSTR, propVal);
}
long CXSockServer::GetLocalPort()
{
long result;
GetProperty(0x2, VT_I4, (void*)&result);
return result;
}
void CXSockServer::SetLocalPort(long propVal)
{
SetProperty(0x2, VT_I4, propVal);
}
BOOL CXSockServer::GetNullTerminate()
{
BOOL result;
GetProperty(0x3, VT_BOOL, (void*)&result);
return result;
}
void CXSockServer::SetNullTerminate(BOOL propVal)
{
SetProperty(0x3, VT_BOOL, propVal);
}
long CXSockServer::GetReceiveBufferCount()
{
long result;
GetProperty(0x4, VT_I4, (void*)&result);
return result;
}
void CXSockServer::SetReceiveBufferCount(long propVal)
{
SetProperty(0x4, VT_I4, propVal);
}
/////////////////////////////////////////////////////////////////////////////
// CXSockServer operations
BOOL CXSockServer::Listen()
{
BOOL result;
InvokeHelper(0x5, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
return result;
}
BOOL CXSockServer::Send(long lChildId, LPCTSTR lpData, long nDataLen)
{
BOOL result;
static BYTE parms[] =
VTS_I4 VTS_BSTR VTS_I4;
InvokeHelper(0x6, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
lChildId, lpData, nDataLen);
return result;
}
void CXSockServer::Close()
{
InvokeHelper(0x7, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
void CXSockServer::AboutBox()
{
InvokeHelper(0xfffffdd8, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -