Reading text file, outputting to a window.

I'm creating a desktop application using MS Visual Studio. Want my app to read a text file and print some of the information into a window.

I'm using the function "TextOut" to print, it appears to only use WCHAR (wide?) strings for output. Of course what I read is "str" (ASCII, not wide). After days of searching have not found anything that will convert "str" to "WCHAR".

What would you use to read text from a file and print it out in a Window?

Thanks,
Tim.
TextOutA did the trick, but when I read the documentation for it (which I did days ago), it too appeared to use TCHAR/WCHAR strings, not just "string". But it is working without any errors so I am good to go.

Thanks to all of you!
Tim.
Topic archived. No new replies allowed.