[vtkusers] VTK-Win32 problem only : including vtk includes windows.h

REGAT-BARREL Aurélien arbvtk at yahoo.fr
Tue May 11 09:42:12 EDT 2004


Hello,
Including VTK headers includes windows.h which is a problem for me.
I have some #define conflicts (just an annoying compiler warning) but also a more serious issues. For example, some of my classes have a GetClassName method, as VTK does. This is changed to GetClassNameA as GetClassName is a macro defined by including windows.h.
I have some strange behaviour with my app which I am porting from Linux. I suspect this is the main problem.
I think that it is not a good thing that using VTK causes the inclusion of windows.h
This should only be done by the internal of concerned VTK classes (few .cxx files) and windows.h should not figure in vtkWin32Header.h.
What's your opinion ?


Aurélien REGAT-BARREL
		
---------------------------------
Yahoo! Mail : votre e-mail personnel et gratuit qui vous suit partout !
Créez votre Yahoo! Mail

Dialoguez en direct avec vos amis grâce à Yahoo! Messenger !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20040511/a4ac171f/attachment.htm>


More information about the vtkusers mailing list