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. C++ ISO Compliance

C++ ISO Compliance

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++visual-studiobusinessquestion
3 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.
  • H Offline
    H Offline
    HalfWayMan
    wrote on last edited by
    #1

    Having moved back to Visual Studio 2005, it is now bombarding me with warnings about ISO C++ deprecation of certain functions (such as strdup and stricmp). Most of these warnings disappear when I tell it to mind it's own business with _CRT_SECURE_NO_DEPRECATE. However, is it advisable to actually do what Microsoft say and switch everything over to the new versions of the functions?

    H 1 Reply Last reply
    0
    • H HalfWayMan

      Having moved back to Visual Studio 2005, it is now bombarding me with warnings about ISO C++ deprecation of certain functions (such as strdup and stricmp). Most of these warnings disappear when I tell it to mind it's own business with _CRT_SECURE_NO_DEPRECATE. However, is it advisable to actually do what Microsoft say and switch everything over to the new versions of the functions?

      H Offline
      H Offline
      Hans
      wrote on last edited by
      #2

      Yes the annoying security warnings ;-) There are many reasons to not use the new functions, even if MS recommends: - your code gets much more complicated - no cross-compiling with other compilers/operating systems possible - every open-source lib you use will bring again these warnings It is also widely not understood that the wrong functions were blamed by MS. Most of them are not unsafe and never were. But they depend on correct usage, so you as the programmer are in charge to not give them garbage. So, my advice is to use the old functions, and check (if you must use plain C) every buffer for long enough size, esp. if you get data from user input. Hans

      H 1 Reply Last reply
      0
      • H Hans

        Yes the annoying security warnings ;-) There are many reasons to not use the new functions, even if MS recommends: - your code gets much more complicated - no cross-compiling with other compilers/operating systems possible - every open-source lib you use will bring again these warnings It is also widely not understood that the wrong functions were blamed by MS. Most of them are not unsafe and never were. But they depend on correct usage, so you as the programmer are in charge to not give them garbage. So, my advice is to use the old functions, and check (if you must use plain C) every buffer for long enough size, esp. if you get data from user input. Hans

        H Offline
        H Offline
        HalfWayMan
        wrote on last edited by
        #3

        Thankyou, Hans. I was thinking something along the same lines, although I never thought of the cross-compatibility issue. Best to check. HWM

        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