From af432b6b0474c8d87324ba16ae27787f655de997 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Fri, 18 Aug 2017 17:27:08 +0000 Subject: [PATCH] EgtInterface 1.8h4 : - aggiunta EgtSimGetOperationInfo. --- API_MachMgr.cpp | 13 +++++++++++++ EgtInterface.rc | Bin 11718 -> 11718 bytes 2 files changed, 13 insertions(+) diff --git a/API_MachMgr.cpp b/API_MachMgr.cpp index 517b263..3fe35ad 100644 --- a/API_MachMgr.cpp +++ b/API_MachMgr.cpp @@ -1487,6 +1487,19 @@ __stdcall EgtSimGetToolInfo( wchar_t*& wsTool, double* pdSpeed) return (( wsTool == nullptr) ? FALSE : TRUE) ; } +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtSimGetOperationInfo( wchar_t*& wsName, int* pnType) +{ + if ( &wsName == nullptr || pnType == nullptr) + return FALSE ; + string sName ; + if ( ! ExeSimGetOperationInfo( sName, *pnType)) + return FALSE ; + wsName = _wcsdup( stringtoW( sName)) ; + return (( wsName == nullptr) ? FALSE : TRUE) ; +} + //----------------------------------------------------------------------------- BOOL __stdcall EgtSimGetMoveInfo( int* pnGmove, double* pdFeed) diff --git a/EgtInterface.rc b/EgtInterface.rc index d33cfdf6969af29535e5a483e35765d92d320710..a5a3c9e100c6a70ec6ed9b0a31139a14d6307ed7 100644 GIT binary patch delta 111 zcmX>WeJpyzFE&P#%^&$rGEF|hS;uHH`Jtfh<^rw;7OzIAO+TQQ4Xt~E@c}o07@$;z5oCK delta 111 zcmX>WeJpyzFE&P_%^&$rGEF|hS;uHJ`Jtfh<^rw;7OzIAO+TQQ4Xt~E@c}o07g?Nt^fc4