Files
EgtInterface/API_Messages.cpp
Dario Sassi 04839b037b EgtInterface :
- aggiornamenti per cambio nome include di base.
2015-05-11 21:11:03 +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/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() ;
}