diff --git a/API_GdbPartLayers.cpp b/API_GdbPartLayers.cpp index f7a21ae..167bf67 100644 --- a/API_GdbPartLayers.cpp +++ b/API_GdbPartLayers.cpp @@ -220,6 +220,39 @@ __stdcall EgtDuploList( int nSouId, int*& vInd, int* pnCount) return TRUE ; } +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtDuploInRawCount( int nSouId, int* pnCount) +{ + if ( pnCount == nullptr) + return FALSE ; + return ( ExeDuploInRawCount( nSouId, *pnCount) ? TRUE : FALSE) ; +} + +//----------------------------------------------------------------------------- +BOOL +__stdcall EgtDuploWithoutRawList( int*& vInd, int* pnCount) +{ + if ( &vInd == nullptr || pnCount == nullptr) + return FALSE ; + INTVECTOR vnDup ; + if ( ! ExeDuploWithoutRawList( vnDup)) + return FALSE ; + int nDim = int( vnDup.size()) ; + if ( nDim == 0) { + vInd = nullptr ; + } + else { + vInd = (int*) malloc( nDim * sizeof( int)) ; + if ( vInd == nullptr) + return FALSE ; + for ( int i = 0 ; i < nDim ; ++ i) + vInd[i] = vnDup[i] ; + } + *pnCount = nDim ; + return TRUE ; +} + //----------------------------------------------------------------------------- BOOL __stdcall EgtDuploSetModified( int nSouId) diff --git a/EgtInterface.rc b/EgtInterface.rc index d7671b9..98e875d 100644 Binary files a/EgtInterface.rc and b/EgtInterface.rc differ