tcpctrl.cpp
来自「网络通讯中间件」· C++ 代码 · 共 47 行
CPP
47 行
// 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 "tcpctrl.h"
/////////////////////////////////////////////////////////////////////////////
// CTcpCtrl
IMPLEMENT_DYNCREATE(CTcpCtrl, CWnd)
/////////////////////////////////////////////////////////////////////////////
// CTcpCtrl properties
/////////////////////////////////////////////////////////////////////////////
// CTcpCtrl operations
SCODE CTcpCtrl::ConnectSver(LPCTSTR SverIP, long Port)
{
SCODE result;
static BYTE parms[] =
VTS_BSTR VTS_I4;
InvokeHelper(0x1, DISPATCH_METHOD, VT_ERROR, (void*)&result, parms,
SverIP, Port);
return result;
}
SCODE CTcpCtrl::DestroyClientSock()
{
SCODE result;
InvokeHelper(0x2, DISPATCH_METHOD, VT_ERROR, (void*)&result, NULL);
return result;
}
BOOL CTcpCtrl::SendBuffer(LPCTSTR buff, long len)
{
BOOL result;
static BYTE parms[] =
VTS_BSTR VTS_I4;
InvokeHelper(0x3, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
buff, len);
return result;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?