Multi-lanugage crash |
Post Reply |
Author | |
gmail
Groupie Joined: 24 February 2008 Status: Offline Points: 45 |
Post Options
Thanks(0)
Posted: 16 January 2010 at 10:30pm |
Hello,
I have a mechanism to switch between languages (using sattelite .dll for each language) on the fly. If I change language on the fly and refresh all visible elements (command bars, etc.) everything works fine. But, if I start application and call AfxSetResourceHandle(LoadLibrary("exampleENU.dll")) in my OnInitInstance() my application crashes in about 2-3 seconds (!?). I've debuged the problem to some point, and my call stack shows that the problem is in: 0 > 3136 Worker Thread CXTPSkinManagerApiHook::ThreadProcHook More precisely, it crashes while using CWnd::GetSafeHwnd. What is the correct procedure to switch resource .dll when starting application. I'm using ToolkitPro v12.1. and I'm linking statically with your resource files and libraries (english version). Also, I've checked your multi language samples and tried various methods and combinations shown there - to no avail. I've created .dlls in program called Sisulizer2008 (used for localization purposes), and everything works fine if I switch from my original language (coded in my .exe) to some other language (located in some .dll). Please advise what is the correct procedure to switch language *when* starting MFC aplication. Thanks! |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |