/////////////////////////////////////////////////////////// // AppendString.cpp - Demonstrate Solution to MT2-Q4 // // // // Jim Fawcett, CSE775 - Distributed Objects, Spring 08 // /////////////////////////////////////////////////////////// #include "stdafx.h" #include "AppendString.h" STDMETHODIMP CAppendString::AppendString(BSTR* Str) { CComBSTR appender(*Str); appender += L" plus this appended string"; SysFreeString(*Str); *Str = appender.Detach(); return S_OK; }