- // vbclient.cpp
- #import "c:Inside COM+ Base ServicesLanguage IntegrationVBComponent.dll" no_namespace
- #import "c:Inside COM+ Base ServicesLanguage Integrationcomponentdebugcomponent.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();
- }