EgtInterface :
- aggiunta EgtTextGetContent.
This commit is contained in:
@@ -16,6 +16,10 @@
|
||||
#include "API.h"
|
||||
#include "/EgtDev/Include/EInAPI.h"
|
||||
#include "/EgtDev/Include/EXeExecutor.h"
|
||||
#include "/EgtDev/Include/EgtStringConverter.h"
|
||||
#include <string>
|
||||
|
||||
using namespace std ;
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
BOOL
|
||||
@@ -512,6 +516,20 @@ __stdcall EgtTextNormVersor( int nId, int nRefId, double vtNorm[3])
|
||||
VEC_FROM_3D( vtNorm, vtTmp)
|
||||
return TRUE ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtTextGetContent( int nId, wchar_t*& wsText)
|
||||
{
|
||||
if ( &wsText == nullptr)
|
||||
return FALSE ;
|
||||
string sText ;
|
||||
if ( ! ExeTextGetContent( nId, sText))
|
||||
return FALSE ;
|
||||
wsText = _wcsdup( stringtoW( sText)) ;
|
||||
return (( wsText == nullptr) ? FALSE : TRUE) ;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
BOOL
|
||||
__stdcall EgtPointToIdGlob( double ptP[3], int nId)
|
||||
|
||||
Reference in New Issue
Block a user