display chinese characters?

D

Dkds.Naidu

Hi,
I am developing ATL COM Addin for Microsoft OUTLOOK. I can get the
exact body of selected mail if it is ENGLISH mail. Otherwise I am getting
only question marks.

I am following this code:

CComPtr<Outlook::_Application> olApp;
//after some statements
CComPtr<Outlook::_MailItem> olSelctedMail;
//after some statements
BSTR bstrSelectedMailBody = ::SysAllocString(L"");
olSelectedMail->get_Subject(&bstrSelectedMailBody);
USES_CONVERSION;
AfxMessageBox(W2A(bstrSelectedMailBody ));
//
//

If selected mail has chinese characters, it returns question marks only. How
to solve this problem?

I have gotten the problem with this type of body:

您好ï¼å¾ˆé«˜å…´è®¤è¯†æ‚¨ã€‚我å¸æœ‰æ„与您们åˆä½œ: å¯é•¿ä¹…给您们带æ¥å·¨å¤§çš„效益,
å¦å› åˆä½œé¡¹ç›®çš„高度自动化,您们æ¯å¤©åªéœ€å·¥ä½œå‡ åˆ†é’Ÿï¼Œå¯¹æ‚¨ä»¬çŽ°æœ‰çš„工作没有影å“ï¼è‹¥æœ‰æ„,请电邮电è¯ç»™æˆ‘,
或请把您的è”系电è¯æˆ–QQ告诉我,以便进一步商谈åˆä½œäº‹å®œï¼Œè°¢è°¢



Thanks in advance.
chat id: (e-mail address removed)
 
D

Dkds.Naidu

Thank you for your immediate response.I appreciate you.

I am new to UNICODE string operations.
How can I see the write the chinese characters in MessageBox or FILE?
How can I write into a FILE?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top