CStdioFile (CFile) fails to open file on USB3.0 attached drive.

Richard Nielsen 1 Reputation point
2022-06-30T10:01:45.647+00:00

I was trying to resurrect an old MFC app that scans the filesystem and writes the result to a file. The error message returned from the file exception is: "Access to I:\Filer.txt was denied."
On drives attached as regular drives (SATA) or on USB2.0 attached drives it works as expected. This is not a great problem but...... If someone could shed some light on this I would greatly appreciate it.

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,857 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.