EgtInterface 2.7c2 :
- aggiunta interfaccia funzione EgtGetAllInfo - piccola miglioria accodamento stringhe con separatore '\n'.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user