GME
13
|
00001 #include "stdafx.h" 00002 #include "MsgConsole.h" 00003 00004 00005 // MsgConsole 00006 MsgConsole::MsgConsole(bool p_create) 00007 { 00008 if( p_create) 00009 m_gme.CoCreateInstance( L"GME.Application"); 00010 } 00011 00012 void MsgConsole::sendMsg( const char* p_msg, int p_mtype) 00013 { 00014 if( m_gme) 00015 { 00016 m_gme->put_Visible( VARIANT_TRUE); 00017 m_gme->ConsoleMessage( _bstr_t(p_msg), (msgtype_enum) p_mtype); 00018 } 00019 } 00020 00021 void MsgConsole::sendMsg( const std::string& p_msg, int p_mtype) 00022 { 00023 sendMsg(p_msg.c_str(), p_mtype); 00024 } 00025