Focus is on CFile file this variable, a plus will trigger the breakpoint
CodePudding user response:
Seek the solution, how to solve
CodePudding user response:
You don't initialize,,,,
CodePudding user response:
I can assure you that your file. Open not open this file, or you change path into an absolute path. You put the map TXT under D disk write fp. Open (" D: \ \ map. TXT ",... )
CodePudding user response:
The second parameter of the Open function is wrong, you use CFile: : modeRead
CodePudding user response:
If (hFile==INVALID_HANDLE_VALUE) return FALSE.//1
CodePudding user response:
How can read files in OnPaint, spending too much You put the file somewhere else read OnPaint should be drawn only deals with the related things