/////////////////////////////////////////////////////////////// // client.cpp - client for B6 demo // // // // Jim Fawcett, CSE791 - Distributed Objects Midterm, S01 // /////////////////////////////////////////////////////////////// #include "stdafx.h" #include #import "B6.tlb" no_namespace using namespace std; void main() { cout << "\n Testing B6 demo In-proc Component " << "\n ===================================\n"; try { CoInitializeEx(NULL,COINIT_APARTMENTTHREADED); IFillStructPtr pFS(__uuidof(FillStruct)); DemoStructB DSB; BSTR bstr; DSB.size = 6; pFS->FillStruct(&DSB, &bstr); cout << "\n result of filling struct:\n "; int i; for(i=0; i