[vtkusers] #include "vtkWin32OpenGLRenderWindow.h" errors

shock8 shock8 at donguri.sakura.ne.jp
Wed Feb 14 20:21:36 EST 2001


hi andy


>compiler (MSVC) thinks "vtkWin32OpenGLRenderWindow.h" is doubly defining
>member functions SetWindowId and SetParentId. There is no complaint in the


i've ran into the same problem
cause of this conflict is that windows handle HWND is both
32bit integer or 32bit pointer
in MFC environment HWND is defined as DWORD
but in console application it is not (void *).

you may redefine HWND correctly or
just comment out two pleonasm function
void *SetParentId(void* foo);
void *SetWindowId(void* foo);
these to only casts void* to HWND

seo shinichiro





More information about the vtkusers mailing list