EgtInterface 1.6u3 :

- aggiunta EgtMdbGetMachiningFromUUID.
This commit is contained in:
Dario Sassi
2016-09-20 09:19:41 +00:00
parent 5ebe665bde
commit 67a8b7a2b6
2 changed files with 14 additions and 1 deletions
+14 -1
View File
@@ -437,7 +437,7 @@ __stdcall EgtTdbGetNextTool( int nFamily, wchar_t*& wsName, int* pnType)
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtTdbGetToolFromUUID( wchar_t* wsTuuid, wchar_t*& wsName)
__stdcall EgtTdbGetToolFromUUID( const wchar_t* wsTuuid, wchar_t*& wsName)
{
if ( &wsName == nullptr)
return FALSE ;
@@ -636,6 +636,19 @@ __stdcall EgtMdbGetNextMachining( int nType, wchar_t*& wsName)
return (( wsName == nullptr) ? FALSE : TRUE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtMdbGetMachiningFromUUID( const wchar_t* wsMuuid, wchar_t*& wsName)
{
if ( &wsName == nullptr)
return FALSE ;
string sName ;
if ( ! ExeMdbGetMachiningFromUUID( wstrztoA( wsMuuid), sName))
return FALSE ;
wsName = _wcsdup( stringtoW( sName)) ;
return (( wsName == nullptr) ? FALSE : TRUE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtMdbSetCurrMachining( const wchar_t* wsName)