Files
EgtInterface/API_Messages.cpp
T
Dario Sassi 8bc0e986b2 EgtInterface 1.6e2 :
- esecutore e lua scorporato in EgtExecutor.
2015-05-05 22:14:56 +00:00

42 lines
1.3 KiB
C++

//----------------------------------------------------------------------------
// 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/EGnStringConverter.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() ;
}