문제

I don‘t know its a valid question or not.

I am working on one project where I want to Load a Japanese string from a string Table.

But I am unable to do that. When I am Loading String Resource in CString it Load Japanese Char as ???????????.

I am using following code to Load String.

CString msg;

msg.LoadString(JAPANESE_STRING_RESOURCE_ID)

and in String Table I have added string as

JAPANESE_STRING_RESOURCE_ID 128 "ありがとう ございます。"

I am not able to trace for the same.

Can any one help me out on this?

도움이 되었습니까?

해결책

In most cases, using Unicode on project helps with this kind of troubles. If you definitely need to use Multibyte in your project, you still can use Unicode CSrting-s - it's CStringW. This can help:

CStringW msg;
msg.LoadString(JAPANESE_STRING_RESOURCE_ID)
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top