#include <TopoDS_Shape.hxx>
#include <TCollection_AsciiString.hxx>
-#include <Standard_ConstructionError.hxx>
+#include <Standard_Failure.hxx>
#ifdef WNT
#include <windows.h>
if ( anExportLib )
fp = (funcPoint)GetProc( anExportLib, "Export" );
- if ( !fp )
- return 0;
+ if ( !fp ) {
+ TCollection_AsciiString aMsg = aFormatName;
+ aMsg += " plugin was not installed";
+ Standard_Failure::Raise(aMsg.ToCString());
+ }
// perform the export
int res = fp( aShape, aFileName, aFormatName );
#include <TopoDS_Shape.hxx>
-#include <Standard_ConstructionError.hxx>
+#include <Standard_Failure.hxx>
#include <StdFail_NotDone.hxx>
#ifdef WNT
if ( anImportLib )
fp = (funcPoint)GetProc( anImportLib, "Import" );
- if ( !fp )
- return 0;
+ if ( !fp ) {
+ TCollection_AsciiString aMsg = aFormatName;
+ aMsg += " plugin was not installed";
+ Standard_Failure::Raise(aMsg.ToCString());
+ }
// perform the import
TCollection_AsciiString anError;