When I use fscanf_s to read from a file I'm getting First-chance exception errors when I run the program in debug mode. If I use fscanf, I don't get an error.
Here are the errors:
First-chance exception at 0x1023beef (msvcr80d.dll) in WinGPIO.exe: 0xC0000005: Access violation writing location 0x00130000.
First-chance exception at 0xfdfdfdfd in WinGPIO.exe: 0xC0000005: Access violation reading location 0xfdfdfdfd.(this line repeats)
if (fopen_s(®_file, ini_file, "r" ))
strMessage.Format("ini file not found");