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

📄 client.cpp

📁 The source code samples for chapter 2, 4, 6, and 8 are contained in the EvenChapters project. Those
💻 CPP
字号:
// client.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "..\this.h"
#include "..\this_i.c"

const long rgbRed = RGB(0, 255, 255);

void CreateRedBalloon()
{
  CComPtr<IBalloonMan>  spBalloonMan;
  if( SUCCEEDED(spBalloonMan.CoCreateInstance(CLSID_BalloonMan)) ) {
    CComPtr<IBalloon> spBalloon;
    if( SUCCEEDED(spBalloonMan->CreateBalloon(rgbRed, &spBalloon)) ) {
      long  rgbColor;
      spBalloon->get_Color(&rgbColor);
      ATLASSERT(rgbColor == rgbRed);
    }
  }
}

int main(int argc, char* argv[])
{
  CoInitialize(0);
  CreateRedBalloon();
  CoUninitialize();
	return 0;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -