Include file for using _contolfp_s
-
Hi, I need to use _contolfp_s function in vc6 to set the floating point control word. I have already used _controlfp and it is working fine
#include "float.h"
_controlfp(_CW_DEFAULT, 0xFFFFF);but it seems this is deprecated function and I have to use the new _contolfp_s. But using this _contolfp_s gives an error undelared identifier as it is checking in the path C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\float.h I have to Include the below path for my vc6 application C:\Program Files\Microsoft Visual Studio 8\VC\include\float.h Where should I Include this? Thanks Satya
Today is a gift, that's why it is called the present.
-
Hi, I need to use _contolfp_s function in vc6 to set the floating point control word. I have already used _controlfp and it is working fine
#include "float.h"
_controlfp(_CW_DEFAULT, 0xFFFFF);but it seems this is deprecated function and I have to use the new _contolfp_s. But using this _contolfp_s gives an error undelared identifier as it is checking in the path C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\float.h I have to Include the below path for my vc6 application C:\Program Files\Microsoft Visual Studio 8\VC\include\float.h Where should I Include this? Thanks Satya
Today is a gift, that's why it is called the present.
I haven't used it in years but I doubt VC6 has an implementation of _controlfp_s. Just keep using _controlfp and everything should works swimmingly. Looking at the error message it looks like you've got VC++ 7.1 installed as well and VC6 is picking up the paths. VC6 and later don't exist together too well so it might be worth isolating them on different computers or virtual machines. Cheers, Ash