EgtInterface 1.6k6 :

- aggiunta interfaccia per info e posizione assi in simulazione
- aggiunta interfaccia per callback output testi.
This commit is contained in:
Dario Sassi
2015-11-16 08:20:09 +00:00
parent 2ea387dfbb
commit 1e6ca0f7cf
2 changed files with 26 additions and 0 deletions
+26
View File
@@ -192,3 +192,29 @@ __stdcall EgtSetProcessEvents( pfProcEvents pFun)
{
return ( ExeSetProcessEvents( pFun) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
static pfOutTextW s_pFunOutText = nullptr ;
//-----------------------------------------------------------------------------
bool
__stdcall MyOutText( const string& sText)
{
if ( s_pFunOutText == nullptr)
return false ;
wchar_t* wsText = _wcsdup( stringtoW( sText)) ;
if ( wsText == nullptr)
return false ;
BOOL bOk = s_pFunOutText( wsText) ;
free( wsText) ;
return ( bOk != FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtSetOutText( pfOutTextW pFun)
{
s_pFunOutText = pFun ;
return ( ExeSetOutText( (( pFun != nullptr) ? MyOutText : nullptr)) ? TRUE : FALSE) ;
}
BIN
View File
Binary file not shown.