diff --git a/API_GdbCreateCurve.cpp b/API_GdbCreateCurve.cpp index 3aa4720..37ad491 100644 --- a/API_GdbCreateCurve.cpp +++ b/API_GdbCreateCurve.cpp @@ -212,9 +212,8 @@ __stdcall EgtCreateCurveCompo( int nParentId, int nNumId, const int nIds[], BOOL { INTVECTOR vIds ; vIds.reserve( nNumId) ; - for ( int i = 0 ; i < nNumId ; ++i) { + for ( int i = 0 ; i < nNumId ; ++i) vIds.push_back( nIds[i]) ; - } return ExeCreateCurveCompo( nParentId, vIds, ( bErase != FALSE)) ; } diff --git a/API_GdbModify.cpp b/API_GdbModify.cpp index 4edf35f..a88970a 100644 --- a/API_GdbModify.cpp +++ b/API_GdbModify.cpp @@ -41,6 +41,17 @@ __stdcall EgtChangeVectorBase( int nId, const double ptB[3], int nRefType) return ( ExeChangeVectorBase( nId, ptB, nRefType) ? TRUE : FALSE) ; } +//---------------------------------------------------------------------------- +BOOL +__stdcall EgtInvertVector( int nNumId, const int nIds[]) +{ + INTVECTOR vIds ; + vIds.reserve( nNumId) ; + for ( int i = 0 ; i < nNumId ; ++i) + vIds.push_back( nIds[i]) ; + return ( ExeInvertVector( vIds) ? TRUE : FALSE) ; +} + //------------------------------------------------------------------------------- BOOL __stdcall EgtModifyText( int nId, const wchar_t* wsNewText) diff --git a/API_GdbModifyCurve.cpp b/API_GdbModifyCurve.cpp index 2e9618f..4509320 100644 --- a/API_GdbModifyCurve.cpp +++ b/API_GdbModifyCurve.cpp @@ -21,10 +21,12 @@ using namespace std ; //---------------------------------------------------------------------------- BOOL -__stdcall EgtInvertCurve( int nId) +__stdcall EgtInvertCurve( int nNumId, const int nIds[]) { INTVECTOR vIds ; - vIds.push_back( nId) ; + vIds.reserve( nNumId) ; + for ( int i = 0 ; i < nNumId ; ++i) + vIds.push_back( nIds[i]) ; return ( ExeInvertCurve( vIds) ? TRUE : FALSE) ; } diff --git a/API_GeomDB.cpp b/API_GeomDB.cpp index adecb39..0824914 100644 --- a/API_GeomDB.cpp +++ b/API_GeomDB.cpp @@ -28,10 +28,10 @@ __stdcall EgtInitContext( void) } //----------------------------------------------------------------------------- -int +BOOL __stdcall EgtDeleteContext( int nGseCtx) { - return ExeDeleteContext( nGseCtx) ; + return ( ExeDeleteContext( nGseCtx) ? TRUE : FALSE) ; } //----------------------------------------------------------------------------- diff --git a/EgtInterface.rc b/EgtInterface.rc index d01c2ac..571854f 100644 Binary files a/EgtInterface.rc and b/EgtInterface.rc differ