client.cpp
来自「The source code samples for chapter 2, 4」· C++ 代码 · 共 25 行
CPP
25 行
// client.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "..\pisvr.h"
#include "..\pisvr_i.c"
HRESULT TestCalcPi() {
CComPtr<IAdvertiseMyself> spAdvertise;
if( SUCCEEDED(spAdvertise.CoCreateInstance(CLSID_CalcPi)) ) {
spAdvertise->ShowAd(CComBSTR("CalcPi Client"));
}
return S_OK;
}
int main(int argc, char* argv[])
{
CoInitialize(0);
TestCalcPi();
CoUninitialize();
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?