win32 File I/O question
Actually, I believe that if you open the files in Wordpad instead of Notepad, it''ll get rid of the boxes for you. Of course if you really need to use Notepad (or just hate Wordpad) then that doesn''t help much.
Yes.. I personlly dislike wordpad.. takes too long to load..
but then I wonder why the HFILE handle (Window) is interpreted different from the FILE handle (C) when both are from VC++
but then I wonder why the HFILE handle (Window) is interpreted different from the FILE handle (C) when both are from VC++
An HFILE is a handle to a Windows file. You access them with Windows API functions.
A FILE is an ANSI C file structure (possibly K&R as well, I''d have to check). You access them with C library functions.
They are two very different beasts even though both are available through VC++.
Though if you used fopen() in binary mode to create a FILE * and used fwrite to output a string (as compared to fprintf) you''d get the same problem.
A FILE is an ANSI C file structure (possibly K&R as well, I''d have to check). You access them with C library functions.
They are two very different beasts even though both are available through VC++.
Though if you used fopen() in binary mode to create a FILE * and used fwrite to output a string (as compared to fprintf) you''d get the same problem.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement