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

春暖花開
雪化了,花開了,春天來了
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>
            久久青草久久| 欧美理论视频| 激情丁香综合| 欧美+亚洲+精品+三区| 久久免费精品视频| 亚洲福利在线观看| 亚洲国产精品毛片| 欧美日韩亚洲一区在线观看| 中文欧美在线视频| 一区二区三区黄色| 国产亚洲欧美日韩精品| 美女视频网站黄色亚洲| 欧美韩日亚洲| 亚洲一区二区免费在线| 香蕉尹人综合在线观看| 1024亚洲| 在线天堂一区av电影| 国产在线播放一区二区三区| 欧美电影美腿模特1979在线看| 欧美日本中文字幕| 久久国产天堂福利天堂| 欧美成人综合一区| 欧美一级播放| 欧美福利视频一区| 欧美在线观看网站| 久久久久一区二区三区四区| 玖玖综合伊人| 亚洲欧美日韩视频二区| 看片网站欧美日韩| 亚洲欧美日韩国产综合| 老巨人导航500精品| 亚洲亚洲精品在线观看 | 亚洲中午字幕| 久久久久国产精品人| 亚洲一区二区三区在线| 久久久久久亚洲精品杨幂换脸| 一区二区三区导航| 久久精视频免费在线久久完整在线看 | 久久偷看各类wc女厕嘘嘘偷窃| 免费亚洲婷婷| 久久精品一二三区| 国产精品国产三级国产普通话三级| 麻豆精品视频| 国产日韩av在线播放| 99re在线精品| 在线免费观看日本欧美| 午夜视频一区| 亚洲欧美网站| 欧美日韩1区2区3区| 亚洲大胆人体在线| 在线电影国产精品| 欧美一区二区精品| 亚洲欧美激情在线视频| 欧美精品1区2区| 久久久www成人免费精品| 国产精品午夜视频| 亚洲午夜黄色| 午夜精品久久久久久久99黑人| 欧美日韩一区高清| 亚洲日本成人女熟在线观看| 亚洲欧洲三级| 欧美成人亚洲成人日韩成人| 欧美国产激情二区三区| 尤物99国产成人精品视频| 久久国产精品电影| 久久伊人亚洲| 亚洲福利专区| 欧美国产第一页| 亚洲青涩在线| 亚洲午夜羞羞片| 国产精品美女诱惑| 午夜久久电影网| 久久久精品视频成人| 激情六月婷婷久久| 玖玖玖国产精品| 亚洲区一区二区三区| 中文国产亚洲喷潮| 国产精品久久久久久久电影| 亚洲一二三四久久| 久久精品亚洲乱码伦伦中文| 国语对白精品一区二区| 久久久久久一区二区| 欧美国产精品人人做人人爱| 亚洲精品在线二区| 国产精品jvid在线观看蜜臀| 亚洲一区尤物| 老牛嫩草一区二区三区日本| 亚洲精品一区在线| 国产精品www| 久久丁香综合五月国产三级网站| 免费观看30秒视频久久| 日韩视频一区| 国产乱码精品一区二区三区av| 久久精品99无色码中文字幕| 亚洲国产日韩在线| 亚洲欧美国产三级| 在线播放日韩专区| 欧美日韩成人激情| 欧美一区二区三区在线| 亚洲国产美女| 性欧美video另类hd性玩具| 永久域名在线精品| 欧美三日本三级三级在线播放| 香蕉视频成人在线观看| 亚洲国产精品久久精品怡红院 | 国产中文一区二区| 欧美aaa级| 欧美一区日韩一区| 亚洲人成艺术| 久久婷婷人人澡人人喊人人爽| 日韩视频欧美视频| 国产综合欧美在线看| 欧美日韩高清免费| 久久久久九九九九| 亚洲午夜久久久久久尤物 | 亚洲中字黄色| 亚洲国产中文字幕在线观看| 久久久久久久综合色一本| 亚洲美女91| 欧美国产国产综合| 久久免费国产精品| 西西人体一区二区| 亚洲精品在线二区| **性色生活片久久毛片| 国产欧美午夜| 国产精品红桃| 欧美日韩系列| 欧美精品国产一区| 免费在线亚洲| 久久久久久黄| 欧美综合国产| 小嫩嫩精品导航| 亚洲欧美日韩国产| 亚洲午夜精品一区二区三区他趣| 亚洲精品美女在线观看| 欧美激情在线播放| 麻豆成人在线| 久色婷婷小香蕉久久| 久久久久久高潮国产精品视| 欧美在线一区二区三区| 性色一区二区三区| 午夜精品久久久久久久久久久久久| 在线视频一区观看| 在线视频你懂得一区二区三区| 亚洲六月丁香色婷婷综合久久| 亚洲国产另类精品专区| 亚洲国产精品久久人人爱蜜臀| 亚洲第一黄色| 亚洲黄网站在线观看| 亚洲片在线资源| 亚洲精品国产精品乱码不99| 亚洲人成人一区二区在线观看| 亚洲欧洲一区二区三区久久| 亚洲三级电影在线观看| a4yy欧美一区二区三区| 亚洲图片激情小说| 亚洲在线观看视频| 香蕉久久夜色精品国产使用方法| 欧美一区二区免费观在线| 久久精品国产免费看久久精品| 久久久久中文| 欧美激情在线有限公司| 亚洲精品一区二区网址 | 亚洲国产精品嫩草影院| 亚洲免费精彩视频| 亚洲小视频在线观看| 久久riav二区三区| 欧美成人免费网| 欧美日韩国产欧美日美国产精品| 国产精品一区二区三区久久久| 国产日韩精品在线播放| 亚洲福利免费| 亚洲欧美日本在线| 美女福利精品视频| 日韩一级成人av| 欧美一区=区| 欧美精品日本| 国产午夜精品一区二区三区欧美| 亚洲国产精品成人一区二区| 一区二区三区欧美激情| 久久精品一二三| 亚洲精品日韩久久| 欧美在线一二三四区| 欧美区国产区| 黄色成人在线| 亚洲永久视频| 亚洲第一级黄色片| 亚洲欧洲99久久| 欧美剧在线免费观看网站| 国产自产在线视频一区| 亚洲精选中文字幕| 久久久久在线观看| 99视频日韩| 欧美gay视频| 国内精品久久久久伊人av| 亚洲一区在线视频| 亚洲第一主播视频| 久久精品系列| 国产精品亚洲网站| 一区二区精品|