Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics
Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
Technical overview
Areas of use
Advantages
FAQ
Screenshots
Shape factory
Shape gallery
Demonstrations
What's new
System requirements
Download Center
Public license
Documentation
Getting started
Forums
Open Source community
Training and e-learning
A-la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
News
Home / Developer Corner / Forums / Usage issues / error C2661: 'Standard_Transient::operator new' : no overloaded function takes 3 arguments

error C2661: 'Standard_Transient::operator new' : no overloaded function takes 3 arguments

error C2661: 'Standard_Transient::operator new' : no overloaded function takes 3 arguments
shmsh 2013/01/30 22:11
Hi there ...
I have written a code to create a point from 3 coordinates as suggested by dear Hans in this forum http://www.opencascade.org/org/forum/thread_24333/?forum=3

the coordinates are being input by the user in a dialog and on command OK in the dialog the POINT must be displayed in the document

the code is as following :
in Doc.cpp

void CMy3DCADDoc::OnBnClickedOk()
{
     // TODO: Add your control notification handler code here
     //gp_Pnt
gp_Pnt point(X_Coordinate, Y_Coordinate, Z_Coordinate);

//Vertex
TopoDS_Vertex vertex = BRepBuilderAPI_MakeVertex(point);

Handle(AIS_Shape) vertexShape = new AIS_Shape(vertex);

//Display
AIS_InteractiveContext->Display(vertexShape);
}

and in the header file Doc.h these header files were included:

#include <AIS_InteractiveContext.hxx>
#include <gp_Pnt.hxx>
#include <Geom_CartesianPoint.hxx>
#include <AIS_Shape.hxx>
#include <TopoDS_Vertex.hxx>
#include <BRepBuilderAPI_MakeVertex.hxx>

but on building command I got these build output which includes three errors::

1>------ Rebuild All started: Project: 3DCAD, Configuration: Debug Win32 ------
1>Deleting intermediate and output files for project '3DCAD', configuration 'Debug|Win32'
1>Compiling...
1>stdafx.cpp
1>Compiling...
1>3DCAD.cpp
1>3DCADDoc.cpp
1>c:\users\55555555555555555555\desktop\3dcad0000\3dcaddoc.cpp(147) : error C2661: 'Standard_Transient::operator new' : no overloaded function takes 3 arguments
1>c:\users\55555555555555555555\desktop\3dcad0000\3dcaddoc.cpp(150) : error C2143: syntax error : missing ';' before '->'
1>c:\users\55555555555555555555\desktop\3dcad0000\3dcaddoc.cpp(150) : error C2143: syntax error : missing ';' before '->'
1>3DCADView.cpp
1>ChildFrm.cpp
1>CircleDialog.cpp
1>ClearAllDialog.cpp
1>LineDialog.cpp
1>MainFrm.cpp
1>PointDialog.cpp
1>SphereDialog.cpp
1>Generating Code...
1>Build log was saved at "file://c:\Users\55555555555555555555\Desktop\3DCAD0000\Debug\BuildLog.htm"
1>3DCAD - 3 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========


kindly any body knows how to solve these errors

thanks in advance

Regards
shmsh 2013/01/30 22:37
Hay there ..
Thanks a lot I found the solution for first error here http://www.opencascade.org/org/forum/thread_160/?forum=3
but kindly if any body knows the solution of the other errors kindly share

Regards
 
 
Latest news
  • Open CASCADE Technology 6.7.0 is available for download!
  • Open CASCADE Technology 6.6.0 is available for download!
  • Open CASCADE Technology 6.5.5 is available for download!

  • © OPEN CASCADE 2000 - 2014  |  Search  |  Contacts   |  Site map