error from using CString.GetBuffer (MAX_PATH),
-
-
CString ftitle; fscanf_s(f_ptr_seed_inf,"%s\n",ftitle[ifl].GetBuffer(MAX_PATH)); ftitle[ifl].ReleaseBuffer(); I got error message: Unhandled exception at 0x776015de in MSW_Vib_Model.exe: 0x00000000: The operation completed successfully. Please help
-
CString ftitle; fscanf_s(f_ptr_seed_inf,"%s\n",ftitle[ifl].GetBuffer(MAX_PATH)); ftitle[ifl].ReleaseBuffer(); I got error message: Unhandled exception at 0x776015de in MSW_Vib_Model.exe: 0x00000000: The operation completed successfully. Please help
-
CString ftitle; fscanf_s(f_ptr_seed_inf,"%s\n",ftitle[ifl].GetBuffer(MAX_PATH)); ftitle[ifl].ReleaseBuffer(); I got error message: Unhandled exception at 0x776015de in MSW_Vib_Model.exe: 0x00000000: The operation completed successfully. Please help
mrby123 wrote:
fscanf_s(f_ptr_seed_inf,"%s\n",ftitle[ifl].GetBuffer(MAX_PATH));
How does this even compile? I would have expected a C2228 error.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
-
CString ftitle; fscanf_s(f_ptr_seed_inf,"%s\n",ftitle[ifl].GetBuffer(MAX_PATH)); ftitle[ifl].ReleaseBuffer(); I got error message: Unhandled exception at 0x776015de in MSW_Vib_Model.exe: 0x00000000: The operation completed successfully. Please help
As Richard said, I've already answered this question. You need to change the
fscanf_s
line as follows -fscanf_s(f_ptr_seed_inf,"%s\n",ftitle[ifl].GetBuffer(MAX_PATH), MAX_PATH);
«_Superman_» _I love work. It gives me something to do between weekends.