vbclient.cpp

来自「经验交流,从网上下载的好东西望大家分享」· C++ 代码 · 共 16 行

CPP
16
字号
// vbclient.cpp
#import "c:\Inside COM+ Base Services\Language Integration\VBComponent.dll" no_namespace
#import "c:\Inside COM+ Base Services\Language Integration\component\debug\component.dll" no_namespace
#include <iostream.h>

void main()
{
	int result;

	CoInitialize(NULL);
	ISumPtr myRef(__uuidof(VBInsideCOM));
	result = myRef->Sum(5, 13);
	cout << "5 + 13 = " << result << endl;
	myRef = NULL;
	CoUninitialize();
}

⌨️ 快捷键说明

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