From b9453c588ba27443d5cc1f09b809411b642b4817 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Thu, 9 Mar 2017 10:54:02 +0000 Subject: [PATCH] EgtInterface 1.8c4 : - aggiunta EgtGetAllTablesNames. --- API_MachMgr.cpp | 18 ++++++++++++++++++ EgtInterface.rc | Bin 11716 -> 11716 bytes 2 files changed, 18 insertions(+) diff --git a/API_MachMgr.cpp b/API_MachMgr.cpp index 42750dc..992c962 100644 --- a/API_MachMgr.cpp +++ b/API_MachMgr.cpp @@ -1475,6 +1475,24 @@ __stdcall EgtGetAllHeadsNames( wchar_t*& wsNames) return (( wsNames == nullptr) ? FALSE : TRUE) ; } +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtGetAllTablesNames( wchar_t*& wsNames) +{ + if ( &wsNames == nullptr) + return FALSE ; + STRVECTOR vNames ; + if ( ! ExeGetAllTablesNames( vNames)) + return false ; + string sNames ; + for each ( const auto& sName in vNames) + sNames += sName + "," ; + if ( ! sNames.empty()) + sNames.pop_back() ; + wsNames = _wcsdup( stringtoW( sNames)) ; + return (( wsNames == nullptr) ? FALSE : TRUE) ; +} + //----------------------------------------------------------------------------- // Machine Calc //----------------------------------------------------------------------------- diff --git a/EgtInterface.rc b/EgtInterface.rc index 0976d8e8b50eb150daf266045187defaf2f54844..5c3b7e69c18c6c4dfa6bc84bea31a59040298cd3 100644 GIT binary patch delta 92 zcmX>SeI$CrFE&P#%^&$rGEF|hS;uHH`Jtfh<^rw;7O^IY)%z7H$Avogmx* delta 92 zcmX>SeI$CrFE&Qw%^&$rGEF|hS;uHR`Jtfh<^rw;7O^IY)%z7H$AuEg;kY