IMultiLanguage::GetCodePageInfo issue

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?YXNycmpz?=

    IMultiLanguage::GetCodePageInfo issue

    I have an unmanaged VS2005 VC++ application using the MultiLanguage DLL
    IMultiLanguage: :GetCodePageInf o method for obtaining MIMECPINFO information
    for a given codepage.

    I find that the valid codepage of 20127 fails. See the code below.

    #include "mlang.h"
    ..
    ..
    ..
    ::CoInitialize( 0);
    HRESULT hr ;
    CComPtr<IMultiL anguagep;
    hr = p.CoCreateInsta nce(__uuidof(CM ultiLanguage));
    MIMECPINFO info;
    hr = p->GetCodePageInf o(20127, &info);
    // hr will be E_FAIL and the info struct will not be populated.

    Any ideas on why this is failing? And how to correct this?
    Thanks.


Working...