"V3d_Viewer" Compile error...

My Code: in "TestCasDoc.h": Handle_V3d_Viewer m_pViewer; Handle_AIS_InteractiveContext m_pAISContext;

in "TestCasDoc.cpp": TCollection_ExtendedString a3DName("Visu3D");

m_pViewer = new V3d_Viewer(theGraphicDevice,a3DName.ToExtString());

m_pViewer->SetDefaultLights();

m_pViewer->SetLightOn();

m_pAISContext =new AIS_InteractiveContext(m_pViewer);

I am encounted compile error in MFC. The compile error is "error C2661: 'new' : no overloaded function takes 3 parameters" I search in help file to find constructors... but I can't find a reason... Help me please..

S. Routelous's picture

Hello,

at the beginning of your .cpp, you have certainly :

#ifdef DEBUG #define new DEBUG_NEW .... #endif or something like that.

Just remove these lines, and it should work.

Stephane

k-jun's picture

^^ Thank you for your respose.. I cleared compile error.. Thanks..