winapi - Embed a file as unicode (WCHAR) into a resource -


i have text file i'd embed within resource in win32, unicode characters - is, each character takes 2 bytes. how can this? file contains ascii characters.

is there indication or flag whether or not file unicode file?

i have resource.rc:

file file_type "text.txt" 

when loaded @ runtime, each character takes 1 byte.

rc not interpret contents of files embedded in way. sure file saved unicode?

if not, can save file unicode notepad (file -> save as, choose encoding = unicode).


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -