<br><font size=2 face="sans-serif">Hi,</font>
<br>
<br><font size=2 face="sans-serif">I'm a vtk beginner, trying to embed
vtk image in my viewport.</font>
<br>
<br><font size=2 face="sans-serif">My code is something like this:</font>
<br>
<br>
<br><font size=2 color=blue face="Courier New">
this</font><font size=2 face="Courier New">->renWin = vtkRenderWindow::New();</font>
<br><font size=2 face="Courier New"> </font><font size=2 color=blue face="Courier New">this</font><font size=2 face="Courier New">->iren
= vtkRenderWindowInteractor::New();</font>
<br><font size=2 color=blue face="Courier New">
this</font><font size=2 face="Courier New">->ren = vtkRenderer::New();</font>
<br><font size=2 face="Courier New">...</font>
<br>
<br>
<br><font size=2 face="Courier New"> </font><font size=2 color=blue face="Courier New">this</font><font size=2 face="Courier New">->renWin->AddRenderer(</font><font size=2 color=blue face="Courier New">this</font><font size=2 face="Courier New">->ren);</font>
<br><font size=2 face="Courier New"> </font>
<br><font size=2 face="Courier New"> </font><font size=2 color=#008000 face="Courier New">//
setup the parent window</font>
<br><font size=2 face="Courier New"> </font><font size=2 color=blue face="Courier New">void</font><font size=2 face="Courier New">*
hwnd = (</font><font size=2 color=blue face="Courier New">this</font><font size=2 face="Courier New">->Handle.ToPointer());
// (the class is a .NET UserControl)</font>
<br><font size=2 face="Courier New"> </font><font size=2 color=blue face="Courier New">this</font><font size=2 face="Courier New">->renWin->SetParentId(hwnd);</font>
<br><font size=2 face="Courier New"> </font><font size=2 color=blue face="Courier New">this</font><font size=2 face="Courier New">->iren->SetRenderWindow(</font><font size=2 color=blue face="Courier New">this</font><font size=2 face="Courier New">->renWin);
</font>
<br><font size=2 color=blue face="Courier New">
</font>
<br>
<br><font size=2 face="Courier New"> </font><font size=2 color=#008000 face="Courier New">//
initialize</font>
<br><font size=2 face="Courier New"> </font><font size=2 color=blue face="Courier New">this</font><font size=2 face="Courier New">->iren->Initialize();</font>
<br><font size=2 face="Courier New"> </font><font size=2 color=blue face="Courier New">this</font><font size=2 face="Courier New">->ren->ResetCamera();</font>
<br>
<br>
<br><font size=2 face="sans-serif">When working 32bit, this works perfect.</font>
<br>
<br><font size=2 face="sans-serif">When working 64bit, an empty black window
is created, named "Form1" (instead of the name I gave it).</font>
<br>
<br><font size=2 face="sans-serif">When I comment out the lines (64bit)</font>
<br><font size=2 face="Courier New"> //</font><font size=2 color=blue face="Courier New">void</font><font size=2 face="Courier New">*
hwnd = (</font><font size=2 color=blue face="Courier New">this</font><font size=2 face="Courier New">->Handle.ToPointer());</font>
<br><font size=2 face="Courier New"> </font><font size=2 color=blue face="Courier New">//this</font><font size=2 face="Courier New">->renWin->SetParentId(hwnd);</font>
<br><font size=2 face="Courier New">a new window with the correct name
appears with the correct actor, but the "Form1" window appears
as well.</font>
<br><font size=2 face="Courier New">Since I plan to embed the viewport
in a large application, I need the image to be in my existing viewport.</font>
<br>
<br><font size=2 face="Courier New">Does anyone have a suggestion what
could make only the 64bit build to fail to embed the image in my viewport?</font>
<br>
<br><font size=2 face="Courier New">Thanks,</font>
<br><font size=2 face="Courier New">Dov</font>
<br>