From ad06fb63ae3c3b3d697542f474cd155c0ccc2e8e Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Fri, 7 Nov 2025 18:00:05 +0100 Subject: [PATCH] EgtInterface 2.7k2 : - aggiunta interfaccia per funzione EgtGetAllCurrAxesNames. --- API_MachMgr.cpp | 23 +++++++++++++++++++++-- EgtInterface.rc | Bin 11726 -> 11726 bytes 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/API_MachMgr.cpp b/API_MachMgr.cpp index cfa2492..261204b 100644 --- a/API_MachMgr.cpp +++ b/API_MachMgr.cpp @@ -2122,7 +2122,7 @@ __stdcall EgtGetAllHeadsNames( wchar_t*& wsNames) return FALSE ; STRVECTOR vNames ; if ( ! ExeGetAllHeadsNames( vNames)) - return false ; + return FALSE ; string sNames ; for ( const auto& sName : vNames) sNames += sName + "," ; @@ -2140,7 +2140,7 @@ __stdcall EgtGetAllTablesNames( wchar_t*& wsNames) return FALSE ; STRVECTOR vNames ; if ( ! ExeGetAllTablesNames( vNames)) - return false ; + return FALSE ; string sNames ; for ( const auto& sName : vNames) sNames += sName + "," ; @@ -2179,6 +2179,25 @@ __stdcall EgtGetCalcTool( wchar_t*& wsTool, wchar_t*& wsHead, int* pnExit) return TRUE ; } +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtGetAllCurrAxesNames( wchar_t*& wsAxNames) +{ + if ( &wsAxNames == nullptr) + return FALSE ; + STRVECTOR vsAxNames ; + if ( ! ExeGetAllCurrAxesNames( vsAxNames)) + return FALSE ; + // restituzione vettore risultati + string sAxNames ; + for ( const auto& sAxName : vsAxNames) + sAxNames += sAxName + "\n" ; + if ( ! sAxNames.empty()) + sAxNames.pop_back() ; + wsAxNames = _wcsdup( stringtoW( sAxNames)) ; + return (( wsAxNames == nullptr) ? FALSE : TRUE) ; +} + //----------------------------------------------------------------------------- BOOL __stdcall EgtGetCalcAngles( const double vtDirT[3], const double vtDirA[3], diff --git a/EgtInterface.rc b/EgtInterface.rc index 00ed83f6196bbd7a677a95d61ff654465373c961..396985a7a48e23fe1c1b66f4d6539f15fc536ede 100644 GIT binary patch delta 113 zcmX>XeJ*;#A2vp#%@4(HGEKh5na5}}`6H+9WG^L)&3#f*jGK>e8!&^VPclv3Cs+lM i-t491#khHcFjUGNr~*ls7YjlI&*XKAP&0v=TDSp?WhmtU delta 113 zcmX>XeJ*;#A2vqA%@4(HGEKh5na5~2`6H+9WG^L)&3#f*jGK>e8!&^VPclv3Cs+lM i-t491#khHcFjUGNr~*ls7YjlI&*XKAP&0v=TDSp=n<(7?