私の VC++ (VS2008) プロジェクトは、マルチバイト文字セットを使用しています。
日付文字列を COleDateTime に変換する次のコードがあります
_bstr_t bstr_tDate = bstrDate; //bstrDate is populated by a COM function
const CString szStartDateTime = bstr_tDate.operator const char *();
bool bParseOK = oleDateTime.ParseDateTime(szStartDateTime);
このコードはすべての地域設定でうまく機能しますが、入力日付が次の形式のアラビア語地域設定では失敗します: 21/05/2012 11:50:31م
変換後、CString にジャンク文字が含まれ、解析が失敗します: 01/05/2012 11:50:28ã
アラビア語の設定で機能する BSTR から CString への変換はありますか?