From 44f5105d0ce8552adad7df275656eaa784541923 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Wed, 28 Nov 2018 17:09:15 +0000 Subject: [PATCH] EgtInterface 1.9k2 : - aggiunta interfaccia per funzione EgtTdbGetCurrToolMaxDepth - for each (.. in ..) sostituito da for ( .. : ..) vero costrutto C++. --- API_MachMgr.cpp | 13 +++++++++++-- EgtInterface.rc | Bin 11726 -> 11726 bytes 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/API_MachMgr.cpp b/API_MachMgr.cpp index d9a659c..4c95a79 100644 --- a/API_MachMgr.cpp +++ b/API_MachMgr.cpp @@ -744,6 +744,15 @@ __stdcall EgtTdbGetCurrToolParamString( int nType, wchar_t*& wsVal) return (( wsVal == nullptr) ? FALSE : TRUE) ; } +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtTdbGetCurrToolMaxDepth( double* pdVal) +{ + if ( pdVal == nullptr) + return FALSE ; + return ( ExeTdbGetCurrToolMaxDepth( *pdVal) ? TRUE : FALSE) ; +} + //----------------------------------------------------------------------------- BOOL __stdcall EgtTdbReload( void) @@ -1682,7 +1691,7 @@ __stdcall EgtGetAllHeadsNames( wchar_t*& wsNames) if ( ! ExeGetAllHeadsNames( vNames)) return false ; string sNames ; - for each ( const auto& sName in vNames) + for ( const auto& sName : vNames) sNames += sName + "," ; if ( ! sNames.empty()) sNames.pop_back() ; @@ -1700,7 +1709,7 @@ __stdcall EgtGetAllTablesNames( wchar_t*& wsNames) if ( ! ExeGetAllTablesNames( vNames)) return false ; string sNames ; - for each ( const auto& sName in vNames) + for ( const auto& sName : vNames) sNames += sName + "," ; if ( ! sNames.empty()) sNames.pop_back() ; diff --git a/EgtInterface.rc b/EgtInterface.rc index e2e5f9cc385eb563f954c88318a44cabf5d7c2dc..519e6850e107a3559699c09f72dad37f9c11d891 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?