[vtkusers] Issue with VTK and windows 64BIT

L.J. van Ruijven L.J.vanRuijven at amc.uva.nl
Tue Dec 19 04:43:48 EST 2006


Hi,

I am using VTK for windows x64. In the past several problems were 
solved thanks to Jeremy Drysdale and Andreas Gerndt (see 
http://public.kitware.com/pipermail/vtkusers/2006-August/086498.html). 
However, problems with the interaction still remained. I found that 
several of the remaining issues are solverd with the following fix:

In vtkWin32RenderWindowInteractor.cxx change:

#if ( _MSC_VER >= 1300 ) // Visual studio .NET
#pragma warning ( disable : 4311 )
#pragma warning ( disable : 4312 )
#  define vtkGWLP_HINSTANCE GWLP_HINSTANCE
#  define vtkGetWindowLong GetWindowLongPtr
#  define vtkSetWindowLong SetWindowLongPtr
#else // regular Visual studio 
#  define vtkGWLP_HINSTANCE GWL_HINSTANCE
#  define vtkGetWindowLong GetWindowLong
#  define vtkSetWindowLong SetWindowLong
#endif // 

into:

#if ( _MSC_VER >= 1300 ) // Visual studio .NET
#pragma warning ( disable : 4311 )
#pragma warning ( disable : 4312 )
#  define vtkGWLP_HINSTANCE GWLP_HINSTANCE
#  define vtkLONG LONG_PTR
#  define vtkWndOffset sizeof(vtkLONG)
#  define vtkGetWindowLong GetWindowLongPtr
#  define vtkSetWindowLong SetWindowLongPtr
#else // regular Visual studio 
#  define vtkGWLP_HINSTANCE GWL_HINSTANCE
#  define vtkLONG LONG
#  define vtkWndOffset sizeof(vtkLONG)
#  define vtkGetWindowLong GetWindowLong
#  define vtkSetWindowLong SetWindowLong
#endif // 

Now change all occurences of LONG into vtkLONG.

Leo.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ljvanruijven.vcf
Type: text/x-vcard
Size: 262 bytes
Desc: Card for "L.J. van Ruijven" <L.J.vanRuijven at amc.uva.nl>
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20061219/8156cc8e/attachment.vcf>


More information about the vtkusers mailing list