EgtInterface 1.6n13 :

- aggiunte EgtSetMachiningParamString e EgtGetMachiningParamString.
This commit is contained in:
Dario Sassi
2016-03-08 09:30:14 +00:00
parent 5665b3e04a
commit 5310488d77
2 changed files with 20 additions and 0 deletions
+20
View File
@@ -882,6 +882,13 @@ __stdcall EgtSetMachiningParamDouble( int nType, double dVal)
return ( ExeSetMachiningParam( nType, dVal) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtSetMachiningParamString( int nType, const wchar_t* wsVal)
{
return ( ExeSetMachiningParam( nType, string( wstrztoA( wsVal))) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtPreviewMachining( BOOL bRecalc)
@@ -914,6 +921,19 @@ __stdcall EgtGetMachiningParamDouble( int nType, double* pdVal)
return ( ExeGetMachiningParam( nType, *pdVal) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetMachiningParamString( int nType, wchar_t*& wsVal)
{
if ( &wsVal == nullptr)
return FALSE ;
string sVal ;
if ( ! ExeGetMachiningParam( nType, sVal))
return FALSE ;
wsVal = _wcsdup( stringtoW( sVal)) ;
return (( wsVal == nullptr) ? FALSE : TRUE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetMachiningGeometry( int nInd, int* pnId, int* pnSub)