<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000066">
I was able to fix this compile error. I had this statement in the
beginning of the program:<br>
<br>
#define new new(_NORMAL_BLOCK,__FILE__, __LINE__)<br>
<br>
Commenting that line fixes it.<br>
<br>
Now the program compiles and links ok.<br>
Hopefully this will help anyone if they encounter a similar error.<br>
-Greg<br>
<br>
<br>
Greg Book wrote:
<blockquote cite="mid:4996FBF0.7030308@gbook.org" type="cite"><font
size="-1"><font face="Helvetica, Arial, sans-serif">I'm
attempting to integrate a wxVTKRenderWindowInteractor into my wxWidgets
application. I'm also using dialogblocks for the GUI. I set up the
renderWindow like this:<br>
<br>
wxVTKRenderWindowInteractor* itemVTKRenderWindowInteractor55 = new
wxVTKRenderWindowInteractor( panelCanvas, ID_CUSTOM, wxDefaultPosition,
wxSize(100, 100), wxSIMPLE_BORDER, "VTKWindow" );<br>
sizerCanvas->Add(itemVTKRenderWindowInteractor55, 1,
wxGROW|wxALL, 0);<br>
<br>
but... I get this error on compilation:<br>
<br>
</font></font><font size="-1"><font
face="Helvetica, Arial, sans-serif">1>c:\projects\miview\mainframe.cpp(463)
: error C2660: 'vtkObject::operator new' : function does not take 4
arguments<br>
<br>
There is no mention of vtkObject inside of </font></font><font
size="-1"><font face="Helvetica, Arial, sans-serif">wxVTKRenderWindowInteractor.cpp,
so I guess it is inherited. It also doesn't matter how many parameters
I pass to the </font></font><font size="-1"><font
face="Helvetica, Arial, sans-serif">wxVTKRenderWindowInteractor
constructor in my program.</font></font><br>
<font size="-1"><font face="Helvetica, Arial, sans-serif"><br>
I'm using VTK 5.2 and wxWidgets 2.8.9<br>
<br>
Anyone experienced this error before?<br>
-Greg<br>
</font></font>
<br>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Powered by <a class="moz-txt-link-abbreviated" href="http://www.kitware.com">www.kitware.com</a>
Visit other Kitware open-source projects at <a class="moz-txt-link-freetext" href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a>
Please keep messages on-topic and check the VTK FAQ at: <a class="moz-txt-link-freetext" href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a>
Follow this link to subscribe/unsubscribe:
<a class="moz-txt-link-freetext" href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a>
</pre>
</blockquote>
<br>
</body>
</html>