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)
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)