diff --git a/GeomDBTree.cpp b/GeomDBTree.cpp index cf83576..e269d47 100644 --- a/GeomDBTree.cpp +++ b/GeomDBTree.cpp @@ -162,7 +162,7 @@ CTestEGrDlg::InsertGroupInTree( int nId, HTREEITEM hParent) // creo un iteratore PtrOwner pIter( CreateGdbIterator()) ; - if ( ! ::IsValid( pIter)) + if ( IsNull( pIter)) return false ; // scandisco il gruppo pIter->SetGDB( m_pGeomDB) ; diff --git a/TestEGr.rc b/TestEGr.rc index db2a9cb..474d931 100644 Binary files a/TestEGr.rc and b/TestEGr.rc differ diff --git a/TestEGrDlg.cpp b/TestEGrDlg.cpp index 1922d5c..1652331 100644 --- a/TestEGrDlg.cpp +++ b/TestEGrDlg.cpp @@ -1232,7 +1232,7 @@ CTestEGrDlg::FileImport( const string& sFilePath) int nPartId = m_pGeomDB->AddGroup( GDB_ID_NULL, GDB_ID_ROOT, Frame3d()) ; // preparo l'importatore PtrOwner pImpDxf( CreateImportDxf()) ; - if ( ! IsValid( pImpDxf)) { + if ( IsNull( pImpDxf)) { LOG_ERROR( m_pLogGen, "Error : CreateImportDxf") return false ; } @@ -1253,7 +1253,7 @@ CTestEGrDlg::FileImport( const string& sFilePath) int nLayerId = m_pGeomDB->AddGroup( GDB_ID_NULL, nPartId, Frame3d()) ; // preparo l'importatore PtrOwner pImpStl( CreateImportStl()) ; - if ( ! IsValid( pImpStl)) { + if ( IsNull( pImpStl)) { LOG_ERROR( m_pLogGen, "Error : CreateImportStl") return false ; } @@ -1314,7 +1314,7 @@ CTestEGrDlg::FileExport( const string& sFilePath) if ( sFileExt == "DXF") { // preparo l'esportatore PtrOwner pExpDxf( CreateExportDxf()) ; - if ( ! IsValid( pExpDxf)) { + if ( IsNull( pExpDxf)) { LOG_ERROR( m_pLogGen, "Error : CreateExportDxf") return false ; } @@ -1329,7 +1329,7 @@ CTestEGrDlg::FileExport( const string& sFilePath) else if ( sFileExt == "STL") { // preparo l'esportatore PtrOwner pExpStl( CreateExportStl()) ; - if ( ! IsValid( pExpStl)) { + if ( IsNull( pExpStl)) { LOG_ERROR( m_pLogGen, "Error : CreateExportStl") return false ; }