|
-
January 18th, 2012, 10:40 AM
#1
ComboBox + LPWSTR
Hi,
I have MFC project, with character set is Multibyte. I want to put Unicode string into CComboBox.
I have done follow code.
CStringW strWText = L"Quảng Trị";
nIndex = (int)::SendMessageW(m_cboCustomer.GetSafeHwnd(), CB_ADDSTRING, 0, (LPARAM)((LPCWSTR)strWText));
But, ComboBox display "Qu?ng Tr?". What wrong with my code ?
(My project setting must be Multibyte character set)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|