mypipesvr.cpp
来自「Chapter11-Scalability.rar com example」· C++ 代码 · 共 22 行
CPP
22 行
// MyPipeSvr.cpp : Implementation of CPipeSvrApp and DLL registration.
#include "stdafx.h"
#include "PipeSvr.h"
#include "MyPipeSvr.h"
/////////////////////////////////////////////////////////////////////////////
//
STDMETHODIMP CMyPipeSvr::Pull(LONG *buf, ULONG cRequest, ULONG *pcReturned)
{
return E_NOTIMPL;
}
STDMETHODIMP CMyPipeSvr::Push(LONG *buf, ULONG cSent)
{
::MessageBox(NULL, _T("Received data"), _T("Server"), MB_OK);
for (ULONG i=0; i<cSent; i++) {
// do something with buf[i]
}
return S_OK;;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?