[vtkusers] Issue with VTK and windows 64BIT

David Cole david.cole at kitware.com
Tue Dec 19 09:48:55 EST 2006


Thanks for this... I'll try to to get this committed this week. (That code
recently moved into header file Common/vtkWin32Header.h...)

Where do you use "vtkWndOffset"? You added that, but didn't mention where
you're using it...

Thanks,
David Cole
Kitware, Inc.


On 12/19/06, L.J. van Ruijven <L.J.vanRuijven at amc.uva.nl> wrote:
>
> 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.
>
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20061219/4e0f685c/attachment.htm>


More information about the vtkusers mailing list