





























2013-12-02 14:47 Clingingboy 阅读(503) 评论() 收藏 举报
使用COM对象查询
CoCreateInstance(CLISD_MLANG,NULL,CLSCTX_INPROC_SERVER,__uuidof(IMultiLanguage),(void**)&m_pLanguage);
CComQIPtr<IMLangCodePages> pPages = m_pLanguage;
DWORD* pdwCodePages=0;
pPages ->GetCharCodePages(wCh,pdwCodePages);
pPages->CodePagesToCodePage(*pdwCodePages,1252,pdwCodePage);
if (*pdwCodePage == 1252)
{
return S_OK;
}
pPages->CodePagesToCodePage(*pdwCodePages,936,pdwCodePage);
if (*pdwCodePage == 936)
{
return S_OK;
}
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。