X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSierpinsky%2FSIERPINSKY_Gen_i.cxx;h=8894c399430fda72277e59752982448dbda41d19;hb=63f2641efb5b757eb441221703b7d79b97d7080c;hp=825076309f805b37aedd412d5412c19f8636dd79;hpb=72a14b19efa180ef07a408eefe252f258dfc2330;p=samples%2Fsierpinsky.git diff --git a/src/Sierpinsky/SIERPINSKY_Gen_i.cxx b/src/Sierpinsky/SIERPINSKY_Gen_i.cxx index 8250763..8894c39 100644 --- a/src/Sierpinsky/SIERPINSKY_Gen_i.cxx +++ b/src/Sierpinsky/SIERPINSKY_Gen_i.cxx @@ -1,9 +1,9 @@ -// Copyright (C) 2005-2013 OPEN CASCADE +// Copyright (C) 2005-2024 OPEN CASCADE // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either -// version 2.1 of the License. +// version 2.1 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -34,7 +34,8 @@ * Engine factory */ extern "C" -{ +{ + SIERPINSKYENGINE_EXPORT PortableServer::ObjectId * SIERPINSKYEngine_factory( CORBA::ORB_ptr orb, PortableServer::POA_ptr poa, PortableServer::ObjectId* contId, @@ -168,7 +169,7 @@ CORBA::Boolean SIERPINSKY_Gen_i::ExportToMED( const char* theFileName, CORBA::Do } // create MED 2.2 file - MED::PWrapper aMed = MED::CrWrapper( theFileName, MED::eV2_2 ); + MED::PWrapper aMed = MED::CrWrapperW( theFileName ); // create 2D mesh MED::PMeshInfo aMesh = aMed->CrMeshInfo( 2, 2, "Sierpinsky" );