////////////////////////////////////////////////////////////////////////////////////////// // COMOutput.cpp // // // Description: // // This is the implementation of the COMOutput COM class. It allows the CGProbe objects // to call the Print functions in the application's dialog ////////////////////////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "COMOutput.h" #include "resource.h" #include "SampleAppDlg.h" STDMETHODIMP COMOutput::raw_Print(BSTR msg) { if ( _output != NULL ) { _output->Print( _bstr_t( msg ) ); } return S_OK; } STDMETHODIMP COMOutput::raw_PrintLn(BSTR msg) { if ( _output != NULL ) { _output->PrintLn( _bstr_t( msg ) ); } return S_OK; }