⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mypipesvr.cpp

📁 Chapter11-Scalability.rar com example
💻 CPP
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -