I made a program that could display different languages after clicking, but when it came to the fact that the LPSTR in my menu displayed the Japanese version, it does not display Japanese characters. He just displayed "???".
Here is a screenshot of my program:

Here is the code that does not work:
I tried this:
AppendMenu(win32LANGUAGE,MF_STRING,NULL,"日本人");
and this:
wchar_t jap = "日本人";
AppendMenu(win32LANGUAGE,MF_STRING,NULL,(LPSTR)jap);
I am stuck. I do not know why it will not display Japanese characters. Thanks in advance.
source
share