青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

春暖花開
雪化了,花開了,春天來了
posts - 149,comments - 125,trackbacks - 0
I have read several instruction, have looked at the MuiHello example (Smartphone SDK) and Googled, but to no help.
To test, I create a Swedish resource dll/mui file with one resource item changed.

I'm not really sure if the technique used in
MuiHello can be appliced on MFC applications or not.

I have named the out put file for my dll project to MyApp.exe.04d1.mui and placed it in the exe directory of the application.
When I execute the application (MyApp.exe) in a Smartphone with user language set to Swedish, the swedish resource is not loaded.
Originally I made resource-only dlls with no entry point but as the sample MuiHello has an entry point I have also tried to add this.

I have also tried out the things found here, "Localized Resources in MFC Applications: Satellite DLLs"
but with no success.
I have tried out the following:
  • Named my resource-only dll to MyAppSVE.dll, place it in the same directory as the exe.
  • Extracting the English resources from the exe and placed them in a resource-only dll named, MyRes.dll. Renamed the resource-only Swedish resource dll to MyResSVE.dll. Used LoadLibrary("MyRes.dll") and AfxSetResourceHandle to set the resource instance.
The result is the same, the Swedish resource is not loaded.

If I explicitly load the Swedish resource dll and use AfxSetResourceHandle it works, but that is not just good enough.

I have checked that the GetUserDefaultUILanguage() returns 0x04d1(Swedish)

Been stuck with this for two days now and getting really frustrated.

Does anyone know what I am doing wrong or how to do it in MFC?
Any pointers and directions are appreciated.

Cheers
Martin

 

Hi again,

I'm still unable to get the correct resource dll to load.

Instead I implemented the app so that it dynamically loaded the correct localized resoures.

I implemeted it in a way so the I can choose to localize on Locale (sub language & primary language) or primary language.

 

Code Block

HINSTANCE g_hInst;

HINSTANCE GetResHInstFormLangId(LANGID langId)

{

CString resDllName;

resDllName.Format(_T("res%04x.dll"), langId);

HINSTANCE hInst = LoadLibrary(resDllName);

if(!hInst)

{

LANGID priLangId = PRIMARYLANGID(langId);

resDllName.Format(_T("res%02x.dll"), priLangId);

hInst = LoadLibrary(resDllName);

}

return hInst;

}

 

BOOL ClocalizedApp::InitInstance()

{

#if defined(WIN32_PLATFORM_PSPC) || defined(WIN32_PLATFORM_WFSP)

SHInitExtraControls();

#endif // WIN32_PLATFORM_PSPC || WIN32_PLATFORM_WFSP

SetRegistryKey(_T("Local AppWizard-Generated Applications"));

//Home made localization support

LANGID userLangId = GetUserDefaultUILanguage();

g_hInst = GetResHInstFormLangId(userLangId);

if(!g_hInst )

{

sysLangId = GetSystemDefaultUILanguage();

if(userLandId != sysLangId)

g_hInst = GetResHInstFormLangId(sysLangId);

}

if(g_hInst)

AfxSetResourceHandle(g_hInst);

ClocalizedDlg dlg;

m_pMainWnd = &dlg;

INT_PTR nResponse = dlg.DoModal();

if (nResponse == IDOK)

{

}

return FALSE;

}

 

 

 

 

The drawback is of cause the all resource must be included in all localized resource dlls.

If anyone has the solution to the previous thread post please respond.

 

/

Martin

Hi once again,

Spent a too long time on this until I realized my misstake.
Oh God such a simple one.

In a application code created with the application wizard the virtual CWinApp::InitInstance is never called.
If one have a look at the implementation of CWinApp::InitInstance, one can see that it is here where the loading of the resoure dlls are made.

Simply put the localized dll in the same directory as the exe.
If my exe is called myApp.exe, my resource dll for the swedish locale is myAppSVE.dll.
In the InitInstance override function call CWinApp::InitInstance.

As far as I can see CWinApp::InitInstance does not do anything but trying to load localized resources.

Don't forget to call CWinApp::ExitInstance from any ExitInstance override, this frees the resource dll.
(Oh no not again, I answered my own Question)
Thanks Martin
posted on 2008-11-19 09:58 Sandy 閱讀(601) 評論(0)  編輯 收藏 引用 所屬分類: Window Mobile
青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            亚洲女人天堂av| 午夜免费日韩视频| 麻豆成人在线| 亚洲欧洲精品成人久久奇米网| 久久亚洲春色中文字幕| 久久久999精品免费| 狠狠爱www人成狠狠爱综合网| 久久天天躁狠狠躁夜夜av| 久久精品日产第一区二区| 在线欧美电影| 亚洲福利视频一区| 欧美高清视频| 亚洲视频在线观看三级| 亚洲欧美日韩精品在线| 一区二区在线免费观看| 亚洲激情第一区| 欧美日韩综合视频| 欧美在线你懂的| 免费观看在线综合| 亚洲无限乱码一二三四麻| 亚洲性图久久| 又紧又大又爽精品一区二区| 欧美成人69av| 欧美色精品在线视频| 久久精品国产精品亚洲综合 | 亚洲婷婷在线| 性欧美1819sex性高清| 亚洲国产精品久久久久久女王| 亚洲激情视频网| 国产噜噜噜噜噜久久久久久久久| 免费日本视频一区| 欧美天堂在线观看| 女人天堂亚洲aⅴ在线观看| 欧美日韩成人一区| 久久久中精品2020中文| 欧美激情精品久久久| 久久久国产精品一区| 欧美日韩国产免费| 另类尿喷潮videofree| 国产精品福利在线观看| 欧美二区在线| 国产欧美另类| 亚洲毛片在线免费观看| 一区二区三区在线观看欧美| 一本一本久久a久久精品综合妖精 一本一本久久a久久精品综合麻豆 | 亚洲精品国产精品乱码不99按摩| 中文在线资源观看网站视频免费不卡| 在线观看一区| 欧美一区二区成人6969| 亚洲小视频在线| 免费观看日韩av| 久久天堂精品| 国产一区二区成人| 一区二区三区精密机械公司| 亚洲精品中文字幕有码专区| 久久久亚洲国产天美传媒修理工 | 亚洲专区在线| 欧美激情综合网| 欧美成人精品不卡视频在线观看| 国产欧美日韩不卡免费| 一区二区三区精品久久久| 亚洲精品综合久久中文字幕| 久久久夜夜夜| 免费久久99精品国产| 狠狠操狠狠色综合网| 欧美一区二区三区四区高清 | 国产一区二区视频在线观看| 亚洲午夜精品一区二区| 亚洲一卡久久| 欧美午夜免费影院| 日韩亚洲欧美成人| 一区二区三区国产在线观看| 欧美精品免费在线观看| 亚洲人成小说网站色在线| 亚洲人人精品| 欧美日本不卡高清| 99天天综合性| 亚洲欧美日韩中文播放| 国产精品乱人伦一区二区| 亚洲午夜一区| 久久精品国产亚洲一区二区| 红桃视频成人| 女主播福利一区| 亚洲区国产区| 国产精品99久久久久久久vr | 免费成人av| 亚洲欧洲日产国产综合网| 99成人免费视频| 国产精品av久久久久久麻豆网| 亚洲香蕉网站| 久久人体大胆视频| 亚洲精品久久久久久久久久久久 | 欧美激情区在线播放| 一本色道婷婷久久欧美| 欧美综合第一页| 在线成人www免费观看视频| 欧美成人免费小视频| 一区二区三区国产| 久久久xxx| 亚洲免费电影在线观看| 国产精品久久9| 久久手机精品视频| 亚洲精品视频在线观看免费| 久久9热精品视频| 在线精品亚洲| 欧美午夜a级限制福利片| 欧美在线高清| 99精品久久| 欧美成人蜜桃| 西西人体一区二区| 亚洲国产成人精品女人久久久| 国产精品ⅴa在线观看h| 久久午夜精品| 亚洲网站在线播放| 欧美黄色日本| 欧美一区二区三区日韩视频| 亚洲第一精品福利| 国产精品丝袜白浆摸在线| 欧美国产日韩亚洲一区| 羞羞色国产精品| 日韩视频中文字幕| 免费亚洲视频| 久久精品五月| 中文欧美日韩| 亚洲精品小视频| 一区二区亚洲精品| 国产日韩欧美不卡在线| 国产精品xnxxcom| 欧美大片免费观看在线观看网站推荐| 欧美亚洲一区| 亚洲综合欧美日韩| 夜夜嗨av一区二区三区四区 | 性亚洲最疯狂xxxx高清| 99视频一区二区| 亚洲国产一区二区a毛片| 国产亚洲精品美女| 国产农村妇女精品一区二区| 欧美视频在线观看一区| 欧美日韩精品免费| 欧美精品久久久久久久免费观看 | 欧美视频免费| 欧美精品xxxxbbbb| 欧美顶级艳妇交换群宴| 母乳一区在线观看| 久久综合九色| 玖玖国产精品视频| 久久综合精品一区| 蜜臀久久99精品久久久久久9| 久久中文字幕导航| 久久综合五月| 狼人社综合社区| 女仆av观看一区| 欧美国产亚洲精品久久久8v| 欧美成年人网站| 欧美日韩成人一区| 欧美性色综合| 国产精品久久久久久亚洲毛片| 国产精品电影观看| 国产精品免费在线| 国产一区二区三区成人欧美日韩在线观看| 国产精品一级久久久| 国内精品美女av在线播放| 黄色另类av| 日韩亚洲欧美一区| 亚洲影院在线| 久久久精品日韩欧美| 美女爽到呻吟久久久久| 亚洲国产成人一区| 日韩香蕉视频| 性色一区二区| 免费观看不卡av| 欧美性猛片xxxx免费看久爱 | 欧美日韩在线播放| 国产欧美精品在线观看| 在线看成人片| 亚洲图色在线| 久久精品三级| 欧美激情在线有限公司| 日韩网站在线观看| 性感少妇一区| 欧美1区3d| 国产精品久久久久久久电影| 黑人极品videos精品欧美裸| 日韩视频在线观看一区二区| 亚洲综合日韩在线| 欧美成人精品激情在线观看| 一区二区三区四区五区精品| 欧美中文在线观看| 欧美精品入口| 国内外成人免费激情在线视频网站| 在线看视频不卡| 午夜久久99| 亚洲国产日韩精品| 欧美在线你懂的| 欧美网站在线| 亚洲麻豆一区| 久久久免费精品视频| 一区二区三区日韩欧美| 免播放器亚洲| 精品999在线观看|