Can I use Unicode characters in a Win32 resource file?

I have a Win32 program where the main window is a dialog, so I can create all the controls using the resource.rc file. I am stuck in creating a button using a Unicode character. It works using the CreateWindowEx () function, but not in the resource file. Why is this?

I tried the following lines of code in the resource file:

#include <wchar.h> // tried with and without this header file
// also tried defining UNICODE but i got an error saying it was already defined
CONTROL "\u2190", IDC_BACK //...more stuff
CONTROL L"\u2190", IDC_BACK //...more stuff
+3
source share
1 answer

-ASCII- , .rc UTF-16 , Ansi, #pragma codepage . UTF-16. , "\u":

CONTROL "←", IDC_BACK
+5

All Articles