EgtInterface :

- aggiunta EgtTextGetContent.
This commit is contained in:
Dario Sassi
2017-02-06 07:49:33 +00:00
parent 0a23cdacaa
commit b3d1614b14
+18
View File
@@ -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)