//---------------------------------------------------------------------------- // EgalTech 2015-2015 //---------------------------------------------------------------------------- // File : API_Messages.cpp Data : 12.02.15 Versione : 1.6b3 // Contenuto : Funzioni per gestione messaggi. // // // // Modifiche : 12.02.15 DS Creazione modulo. // // //---------------------------------------------------------------------------- //--------------------------- Include ---------------------------------------- #include "stdafx.h" #include "API.h" #include "/EgtDev/Include/EInAPI.h" #include "/EgtDEv/Include/EXeExecutor.h" #include "/EgtDev/Include/EgtStringConverter.h" using namespace std ; //---------------------------------------------------------------------------- static wstring s_wsMsg ; //---------------------------------------------------------------------------- BOOL __stdcall EgtLoadMessages( const wchar_t* wsMsgFilePath) { s_wsMsg.clear() ; s_wsMsg.reserve( 128) ; return ( ExeLoadMessages( wstrztoA( wsMsgFilePath)) ? TRUE : FALSE) ; } //---------------------------------------------------------------------------- const wchar_t* __stdcall EgtGetMsg( int nMsg) { s_wsMsg = stringtoW( ExeGetMsg( nMsg)) ; return s_wsMsg.c_str() ; }