Z
Z
Zakhar Alekseenko2014-07-31 11:38:12
C++ / C#
Zakhar Alekseenko, 2014-07-31 11:38:12

CCheckListBox - why krakozyabry instead of text?

I create CCheckListBox with 4 fields, instead of the text there are krakozyabry.

channels_check_list = new CCheckListBox();
  if (channels_check_list != NULL)
    channels_check_list->Create(WS_VISIBLE | WS_CHILD | LBS_OWNERDRAWVARIABLE, CRect(CPoint(left + lbwidth + 10, 60), CSize(100, lbheight)), this, IDC_MYCHECKBOXLIST);
  channels_check_list->InsertString(0, L"Channel 1");
  channels_check_list->InsertString(1, L"Channel 2");
  channels_check_list->InsertString(2, L"Channel 3");
  channels_check_list->InsertString(3, L"Channel 4");

As a result it turns out
f6529163fc5a4b4eb44c163f84f142f8.png
In properties of the project the coding utf is exposed. How can I display readable text?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sumor, 2014-07-31
@Sumor

It seems that you have utf-32 (four-byte) encoding set, and L"Channel 1" means utf-16 (two-byte).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question