Author: JamieJamie
Date: Jan 24, 2008 04:24
Hi, i am porting some old code to win32 using the win32 file
functions. I am finally egtting somewhere. But during testing i am
reading text from a file using ReadFile and trying to display it using
wsprintf and MessageBox for testing, but all it's displaying of the
read text is gibberish?? All the numbers i am reading are ok. This is
similar to if i leave out the L"My Text here" 'L' but am not sure why
it is happening.
Simple PTSTR using malloc, and reading into the buffer. Any idea what
i am doing wrong? some conversion somewhere?
Many Thanks
Jamie
|