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

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
#include
#include
#include
#include
#include

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's picture

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