///////////////////////////////////////////////////////////////////// // InnerComponent.cpp - modifies a string sent by its client, // // e.g., OuterComponent // // // // Jim Fawcett, CSE775 - Distributed Objects, Spring 2007 // ///////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "InnerComponent.h" #include ".\innercomponent.h" //----< append a string literal to client's string >----------------- STDMETHODIMP CInnerComponent::ModifyStringAgain(BSTR* str) { CComBSTR s(*str); s += L"\n Hi from InnerComp"; *str = s; return S_OK; }