Thanks for this... I&#39;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 &quot;vtkWndOffset&quot;? You added that, but didn&#39;t mention where you&#39;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> &lt;<a href="mailto:L.J.vanRuijven@amc.uva.nl">L.J.vanRuijven@amc.uva.nl
</a>&gt; 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 &gt;= 1300 ) // Visual studio .NET
<br>#pragma warning ( disable : 4311 )<br>#pragma warning ( disable : 4312 )<br>#&nbsp;&nbsp;define vtkGWLP_HINSTANCE GWLP_HINSTANCE<br>#&nbsp;&nbsp;define vtkGetWindowLong GetWindowLongPtr<br>#&nbsp;&nbsp;define vtkSetWindowLong SetWindowLongPtr<br>#else // regular Visual studio
<br>#&nbsp;&nbsp;define vtkGWLP_HINSTANCE GWL_HINSTANCE<br>#&nbsp;&nbsp;define vtkGetWindowLong GetWindowLong<br>#&nbsp;&nbsp;define vtkSetWindowLong SetWindowLong<br>#endif //<br><br>into:<br><br>#if ( _MSC_VER &gt;= 1300 ) // Visual studio .NET<br>#pragma warning ( disable : 4311 )
<br>#pragma warning ( disable : 4312 )<br>#&nbsp;&nbsp;define vtkGWLP_HINSTANCE GWLP_HINSTANCE<br>#&nbsp;&nbsp;define vtkLONG LONG_PTR<br>#&nbsp;&nbsp;define vtkWndOffset sizeof(vtkLONG)<br>#&nbsp;&nbsp;define vtkGetWindowLong GetWindowLongPtr<br>#&nbsp;&nbsp;define vtkSetWindowLong SetWindowLongPtr
<br>#else // regular Visual studio<br>#&nbsp;&nbsp;define vtkGWLP_HINSTANCE GWL_HINSTANCE<br>#&nbsp;&nbsp;define vtkLONG LONG<br>#&nbsp;&nbsp;define vtkWndOffset sizeof(vtkLONG)<br>#&nbsp;&nbsp;define vtkGetWindowLong GetWindowLong<br>#&nbsp;&nbsp;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>