/////////////////////////////////////////////////////////////////////////// // MMFcomp.cpp - Provides management of shared memory for IPC // // Built as an ATL component with Both threading model. // // // // Jim Fawcett, CSE775 - Distributed Objects, MT1-Q4, Spring 2009 // /////////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "MMFcomp.h" STDMETHODIMP CMMFcomp::putString(BSTR msg) { pMMFmgr->putString(msg); return S_OK; } STDMETHODIMP CMMFcomp::getString(BSTR* pMsg) { CComBSTR temp((pMMFmgr->getString()).c_str()); *pMsg = temp.Detach(); return S_OK; }