EgtInterface 2.4a1 :

- aggiunta interfaccia per EgtGetCalcTool.
This commit is contained in:
DarioS
2022-01-04 08:07:36 +01:00
parent f1c717c553
commit e3aef1e919
2 changed files with 22 additions and 0 deletions
+22
View File
@@ -1993,6 +1993,26 @@ __stdcall EgtSetCalcTool( const wchar_t* wsTool, const wchar_t* wsHead, int nExi
return ( ExeSetCalcTool( wstrztoA( wsTool), wstrztoA( wsHead), nExit) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetCalcTool( wchar_t*& wsTool, wchar_t*& wsHead, int* pnExit)
{
if ( &wsTool == nullptr || &wsHead == nullptr || pnExit == nullptr)
return FALSE ;
string sTool, sHead ;
if ( ! ExeGetCalcTool( sTool, sHead, *pnExit))
return FALSE ;
wsTool = _wcsdup( stringtoW( sTool)) ;
if ( wsTool == nullptr)
return FALSE ;
wsHead = _wcsdup( stringtoW( sHead)) ;
if ( wsHead == nullptr) {
free( wsTool) ;
return FALSE ;
}
return TRUE ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetCalcAngles( const double vtDirT[3], const double vtDirA[3],
@@ -2059,6 +2079,8 @@ __stdcall EgtVerifyOutstroke( double dX, double dY, double dZ, double dAngA, dou
BOOL
__stdcall EgtGetOutstrokeInfo( wchar_t*& wsInfo)
{
if ( &wsInfo == nullptr)
return FALSE ;
string sInfo ;
if ( ! ExeGetOutstrokeInfo( sInfo))
return FALSE ;