EgtInterface 1.6n13 :
- aggiunte EgtSetMachiningParamString e EgtGetMachiningParamString.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user