Visual C++

This is a discussion on Visual C++ within the C++ Programming forums, part of the General Programming Boards category; >>Make sure you define CRT_SECURE_NO_DEPRECATE in the Project->Properties->C/C++->Preprocessor->Preprocessor definitions field. Otherwise the compiler will flag every reference to a C ...

  1. #16
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    >>Make sure you define CRT_SECURE_NO_DEPRECATE in the Project->Properties->C/C++->Preprocessor->Preprocessor definitions field. Otherwise the compiler will flag every reference to a C standard library function as deprecated.

    That didn't work for me. I use pragmas to disable those warnings
    #pragma warning(disable: 4996)

  2. #17
    Registered User hk_mp5kpdw's Avatar
    Join Date
    Jan 2002
    Location
    Northern Virginia/Washington DC Metropolitan Area
    Posts
    3,802
    Code:
    #include <stdlib.h>
    #include <time.h>
    Don't know if it will help, but those should be:
    Code:
    #include <cstdlib>
    #include <ctime>
    "Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
    -Christopher Hitchens

  3. #18
    The Richness... Richie T's Avatar
    Join Date
    Jan 2006
    Location
    Ireland
    Posts
    469
    >>Make sure you define CRT_SECURE_NO_DEPRECATE

    >>That didn't work for me

    That's because its supposed to be _CRT_SECURE_NO_DEPRECATE
    Works fine then.
    No No's:
    fflush (stdin); gets (); void main ();


    Goodies:
    Example of fgets (); The FAQ, C/C++ Reference


    My Gear:
    OS - Windows XP
    IDE - MS Visual C++ 2008 Express Edition


    ASCII stupid question, get a stupid ANSI

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 04:45 PM
  2. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  3. load gif into program
    By willc0de4food in forum Windows Programming
    Replies: 14
    Last Post: 01-11-2006, 09:43 AM
  4. Errors with including winsock 2 lib
    By gamingdl'er in forum C++ Programming
    Replies: 3
    Last Post: 12-05-2005, 07:13 PM
  5. Learning OpenGL
    By HQSneaker in forum C++ Programming
    Replies: 7
    Last Post: 08-06-2004, 08:57 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21