📄 client.cpp
字号:
// client.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "..\fwdshims.h"
struct ComInit
{
ComInit(DWORD dwCoInit = COINIT_APARTMENTTHREADED) { CoInitializeEx(0, dwCoInit); }
~ComInit() { CoUninitialize(); }
} g_com;
int main(int argc, char* argv[])
{
CComPtr<IUnknown> spunk;
if( SUCCEEDED(spunk.CoCreateInstance(__uuidof(AcePowell))) )
{
CComQIPtr<ICowboy> spcb = spunk;
if( spcb ) spcb->Draw();
CComQIPtr<IArtist> spa = spunk;
if( spa ) spa->Draw();
}
return S_OK;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -