?? mypipesvr.cpp
字號(hào):
// 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;;
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -