EgtInterface 2.7c2 :

- aggiunta interfaccia funzione EgtGetAllInfo
- piccola miglioria accodamento stringhe con separatore '\n'.
This commit is contained in:
Dario Sassi
2025-03-22 18:07:41 +01:00
parent 7659e40140
commit 92769d6783
3 changed files with 43 additions and 30 deletions
+19
View File
@@ -426,6 +426,25 @@ __stdcall EgtGetInfoFrame( int nId, const wchar_t* wsKey, double ptOrig[3],
return TRUE ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetAllInfo( int nId, wchar_t*& wsInfos)
{
if ( &wsInfos == nullptr)
return FALSE ;
STRVECTOR vsInfo ;
if ( ! ExeGetAllInfo( nId, vsInfo))
return FALSE ;
// restituzione vettore risultati
string sInfos ;
for ( const auto& sInfo : vsInfo)
sInfos += sInfo + "\n" ;
if ( ! sInfos.empty())
sInfos.pop_back() ;
wsInfos = _wcsdup( stringtoW( sInfos)) ;
return (( wsInfos == nullptr) ? FALSE : TRUE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtExistsInfo( int nId, const wchar_t* wsKey)