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 00ed83f..396985a 100644 Binary files a/EgtInterface.rc and b/EgtInterface.rc differ