Thanks for this... I'll try to to get this committed this week. (That code recently moved into header file Common/vtkWin32Header.h...)<br><br>Where do you use "vtkWndOffset"? You added that, but didn't mention where you're using it...
<br><br>Thanks,<br>David Cole<br>Kitware, Inc.<br><br><br><div><span class="gmail_quote">On 12/19/06, <b class="gmail_sendername">L.J. van Ruijven</b> <<a href="mailto:L.J.vanRuijven@amc.uva.nl">L.J.vanRuijven@amc.uva.nl
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br><br>I am using VTK for windows x64. In the past several problems were
<br>solved thanks to Jeremy Drysdale and Andreas Gerndt (see<br><a href="http://public.kitware.com/pipermail/vtkusers/2006-August/086498.html">http://public.kitware.com/pipermail/vtkusers/2006-August/086498.html</a>).<br>
However, problems with the interaction still remained. I found that<br>several of the remaining issues are solverd with the following fix:<br><br>In vtkWin32RenderWindowInteractor.cxx change:<br><br>#if ( _MSC_VER >= 1300 ) // Visual studio .NET
<br>#pragma warning ( disable : 4311 )<br>#pragma warning ( disable : 4312 )<br># define vtkGWLP_HINSTANCE GWLP_HINSTANCE<br># define vtkGetWindowLong GetWindowLongPtr<br># define vtkSetWindowLong SetWindowLongPtr<br>#else // regular Visual studio
<br># define vtkGWLP_HINSTANCE GWL_HINSTANCE<br># define vtkGetWindowLong GetWindowLong<br># define vtkSetWindowLong SetWindowLong<br>#endif //<br><br>into:<br><br>#if ( _MSC_VER >= 1300 ) // Visual studio .NET<br>#pragma warning ( disable : 4311 )
<br>#pragma warning ( disable : 4312 )<br># define vtkGWLP_HINSTANCE GWLP_HINSTANCE<br># define vtkLONG LONG_PTR<br># define vtkWndOffset sizeof(vtkLONG)<br># define vtkGetWindowLong GetWindowLongPtr<br># define vtkSetWindowLong SetWindowLongPtr
<br>#else // regular Visual studio<br># define vtkGWLP_HINSTANCE GWL_HINSTANCE<br># define vtkLONG LONG<br># define vtkWndOffset sizeof(vtkLONG)<br># define vtkGetWindowLong GetWindowLong<br># define vtkSetWindowLong SetWindowLong
<br>#endif //<br><br>Now change all occurences of LONG into vtkLONG.<br><br>Leo.<br><br><br><br>_______________________________________________<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at:
<a href="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers
</a><br><br><br><br></blockquote></div><br>