POV-Ray : Newsgroups : povray.beta-test : Compile errors with VS 2005 on Windows XP : Re: Compile errors with VS 2005 on Windows XP Server Time
29 Jul 2024 19:13:26 EDT (-0400)
  Re: Compile errors with VS 2005 on Windows XP  
From: Nicolas Alvarez
Date: 17 May 2009 22:54:02
Message: <4a10cdca@news.povray.org>
Christian Froeschlin wrote:
> Finally, isn't the actual problem that there are name collisions
> between the POV Code and Platform Includes? Wouldn't the solution
> be to replace, e.g., IStream with pov_base::IStream instead of
> depending on the include location of windows.h?

POV-Ray stuff is already in a namespace. The big problem with windows.h is
that it defines *macros*. If you have a my_namespace::MyClass::OpenFile
method, and you included windows.h, you'll get annoying error messages
about OpenFileA [sic!] not being defined.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.