CoCreateInstance的第二個參數是用在聚合時的內部組件創建時使用的,這個參數把外部組件的IUnknown的指針傳遞給內部組件,內部組件的代理IUnknown按照需要調用這個外部組件的IUnknow接口,或者調用內部組件自己的非代理IUnknown。
摘要:
// PureApp.cpp : 定義應用程序的入口點。//// Windows 頭文件:#include <windows.h>// C 運行時頭文件#include <stdlib.h>#include <malloc.h>#include&n...
閱讀全文
摘要: #include<stdlib.h>#include<stdio.h>#include<memory.h>#define NOSMOKE 10#define SMOKE 10struct PlaneSeat{ int noSmoke[NOSMOKE];&nb...
閱讀全文