Friday, February 12, 2016

Fix _CRT_SECURE_NO_WARNINGS in VC++

Error:

To disable deprecation, use _CRT_SECURE_NO_WARNINGS.

Error    1    error C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.

Error    1    error C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.

Solution:


Go to Project -> Properties -> C/C++ -> Preprocessor -> Preprocessor Definitions and add _CRT_SECURE_NO_WARNINGS in the list.

4 comments:

  1. Leader in developing embedded system projects, providing Engineering and SCADA solutions using Raspberry pi, Arduino and more.... natural language processing

    ReplyDelete
  2. I sent your articles links to all my contacts and they all adore it including me.
    UX agency

    ReplyDelete
  3. AMD and Intel have since been going down their own, generally equal, ways of execution and speed increments, while utilizing various plans. Choosing a motherboard for an advanced AMD processor kills the utilization of any Intel processor, and the other way around. Lian Li Lancool II

    ReplyDelete