Ancient #include line in max.h
by Oleg Rekutin · in Torque Game Engine · 07/14/2002 (10:45 am) · 7 replies
I'm rather new to the Torque engine, but I must say that it is certainly a sweet sweet engine :)
I've been compiling the engine under Visual Studio 7, and amongst other things, it complains about this line in torque/lib/maxsdk31/max.h (line 23):
#include
Turns out that this header has not been needed since Windows 95.
Could someone please remove that line from that file in CVS?
Thanks :)
I've been compiling the engine under Visual Studio 7, and amongst other things, it complains about this line in torque/lib/maxsdk31/max.h (line 23):
#include
Turns out that this header has not been needed since Windows 95.
Could someone please remove that line from that file in CVS?
Thanks :)
#2
07/14/2002 (10:54 am)
Actually, yes you can remove it. Visual Studio 7 doesn't need it. I would refere you to a thread about this, but I can't seem to find it right now.
#3
07/14/2002 (11:42 am)
But does VC6 need that control?
#4
maybe do something like:
#if MSVCVER < 7
#include
#endif
07/14/2002 (8:39 pm)
Isn't there some sort of preprocessor directive for compiler version?maybe do something like:
#if MSVCVER < 7
#include
#endif
#5
07/14/2002 (8:46 pm)
Yeah, but why do you want to keep it for VC6 anyway? Seems like it should compile just fine without it in VC6, although I can't try it at the moment.
#6
All I know is that the header file is no longer included with .Net versions of the libraries and upon further investigation MSDN website says that this header is no longer needed since it is now used automatically.
07/14/2002 (9:05 pm)
LabRat, I am not sure.All I know is that the header file is no longer included with .Net versions of the libraries and upon further investigation MSDN website says that this header is no longer needed since it is now used automatically.
#7
According to the CTL3D.HLP file from ftp://ftp.microsoft.com/softlib/mslfiles/ctl3d.exe, the creation date is "September 23, 1992", so this is from way back in the day.
It contains this paragraph, in a border:
Important
Future versions of Windows will implement all controls in 3-D. Therefore, any method you use to add 3-D to current controls today must either work with future versions of Windows, or must automatically disable itself when running future versions of Windows. CTL3D disables itself when running Windows version 4.0 or later. Future versions of Windows are not known at this point. If interim Windows releases (such as Windows version 3.11 or 3.20) become available without 3-D functionality, CTL3D will be updated accordingly.
---
After this, I have no doubt in my mind that ctl3d.h header is beyond obsolete. :) Unless we're porting TGE to Windows 3.1.
07/15/2002 (1:13 pm)
So far everything is confirming that this has been a file to add "3d look" to Windows 3.1 controls.According to the CTL3D.HLP file from ftp://ftp.microsoft.com/softlib/mslfiles/ctl3d.exe, the creation date is "September 23, 1992", so this is from way back in the day.
It contains this paragraph, in a border:
Important
Future versions of Windows will implement all controls in 3-D. Therefore, any method you use to add 3-D to current controls today must either work with future versions of Windows, or must automatically disable itself when running future versions of Windows. CTL3D disables itself when running Windows version 4.0 or later. Future versions of Windows are not known at this point. If interim Windows releases (such as Windows version 3.11 or 3.20) become available without 3-D functionality, CTL3D will be updated accordingly.
---
After this, I have no doubt in my mind that ctl3d.h header is beyond obsolete. :) Unless we're porting TGE to Windows 3.1.
Torque Owner Zachary McMaster