Home > Back-end >  Help!!!!! Vs2013 this situation
Help!!!!! Vs2013 this situation

Time:10-03

CodePudding user response:

Fopen_s (FILE * pFile, const char * filename, const char * mode).

Open the file successfully returns 0, or return to the other values,

This is the function prototype, do you think you use right

Fopen_s (& amp; Fp, "E: \ \ NGM TXT", "w");

CodePudding user response:

reference 1st floor CHXCHXKKK response:
fopen_s (FILE * pFile, const char * filename, const char * mode).

Open the file successfully returns 0, or return to the other values,

This is the function prototype, do you think you use right

Fopen_s (& amp; Fp, "E: \ \ NGM TXT", "w");

Thank you, have been solved in brackets, that is, the first "errno_t" type of value can not be assigned to the "FILE" * "type of entity, this how to solve the

CodePudding user response:

reference 1st floor CHXCHXKKK response:
fopen_s (FILE * pFile, const char * filename, const char * mode).

Open the file successfully returns 0, or return to the other values,

This is the function prototype, do you think you use right

Fopen_s (& amp; Fp, "E: \ \ NGM TXT", "w");

I have been solved, thank you,
  • Related