Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Include file for using _contolfp_s

Include file for using _contolfp_s

Scheduled Pinned Locked Moved C / C++ / MFC
csharpvisual-studiohelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    narayanagvs
    wrote on last edited by
    #1

    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.

    A 1 Reply Last reply
    0
    • N narayanagvs

      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.

      A Offline
      A Offline
      Aescleal
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups