Salome HOME
Fix bug 13341: geompy.SubShapeAllSortedIDs() works wrong.
[modules/geom.git] / src / GEOM / geom.cxx
index 37707e72030b865356669993ee5b486a630c0c1d..8ac0deb96856dab8a520f005ee8772838296fd50 100644 (file)
@@ -1,4 +1,4 @@
-//  GEOM GEOM : implementaion of GEOM_Gen.idl and GEOM_Shape.idl
+//  GEOM GEOM : implementaion of GEOM_Gen.idl
 //
 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
@@ -17,7 +17,7 @@
 //  License along with this library; if not, write to the Free Software 
 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
 // 
-//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 //
 //
 //  Module : GEOM
 //  $Header$
 
-using namespace std;
-#include "GEOM_Gen_i.hh"
-#include "SALOME_NamingService.hxx"
+#include <Standard_Stream.hxx>
+
+#include <CORBA.h>
+#include <GEOM_Gen_i.hh>
+#include <SALOME_NamingService.hxx>
 
 //==================================================================================
 // function : main()                      MAIN 
@@ -48,7 +50,11 @@ int main(int argc, char** argv)
     // We allocate the objects on the heap.  Since these are reference
     // counted objects, they will be deleted by the POA when they are no
     // longer needed.    
+#ifdef WNT
+    GEOM_Gen_i * myGEOM_Gen_i = new GEOM_Gen_i((CORBA::ORB_ptr)orb, poa, 0, 0, 0 );
+#else
     GEOM_Gen_i * myGEOM_Gen_i = new GEOM_Gen_i(orb);
+#endif
 
     // Activate the objects.  This tells the POA that the objects are
     // ready to accept requests.