Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9169487
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:53:10+00:00 2026-06-17T15:53:10+00:00

Possible Duplicate: fopen deprecated warning While creating my project, I encountered this error: error

  • 0

Possible Duplicate:
fopen deprecated warning

While creating my project, I encountered this error:

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.
1> c:\program files (x86)\microsoft visual studio 11.0\vc\include\stdio.h(218) : see declaration of ‘fopen’

However, I have also included stdio.h and fstream as headers because others told me to do so.
I still encounter the error.

Here is my code for the part of the error:

http://pastie.org/5796103

Can anyone help me?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T15:53:10+00:00Added an answer on June 17, 2026 at 3:53 pm

    As the error states, you need to use fopen_s, or disable the security exception errors via adding #define _CRT_SECURE_NO_DEPRECATE before your include.

    The reasoning behind these warnings, as well as how to disable them for various C Runtime functions, is described in detail in Security Enhancements in the CRT.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Variable doesn’t get returned from AJAX function I have this function: function
Possible Duplicate: Can main function call itself in C++? I found this problem very
Possible Duplicate: QString to char conversion I have a function (fopen in STL) that
Possible Duplicate: Decompile iPhone app binary This question may be unethical or at least
Possible Duplicate: PHP create a file without fopen I want to create a file
Possible Duplicate: How can I understand nested ?: operators in PHP? Why does this:
Possible Duplicate: while( !feof( file ) ) is always wrong I have a strange
Possible Duplicate: When does Endianness become a factor? reading this tuto on endianess, i
Possible Duplicate: How to get useful error messages in PHP? Im currently learning php
Possible Duplicate: Is it possible to gain access to the closure of a function?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.