![]() |
Bug when loading language dll? |
Post Reply
|
| Author | |
souren
Newbie
Joined: 05 February 2008 Status: Offline Points: 13 |
Post Options
Thanks(0)
Quote Reply
Topic: Bug when loading language dll?Posted: 13 February 2008 at 5:00pm |
|
Loading DLL more than once using the following code causes exception:
XTPResourceManager()->SetResourceManager(new CXTPResourceManager()); XTPResourceManager()->SetResourceFile(L"lang.dll"); Assertion: void CXTPResourceManager::UpdateResourcesLangID() { HMODULE hResModule = GetResourceHandle(); WORD wLangID = GetResourceLanguage(hResModule); ASSERT(wLangID); SetResourceLanguage(wLangID); } Tested with ScribbleMultiLang(dll way), same problem. XML is free of this problem. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 14 February 2008 at 1:01am |
|
Hi,
This assert indicates that your dll has only Neutral language.
What lines you added to scribble sample to reproduce it ?
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
souren
Newbie
Joined: 05 February 2008 Status: Offline Points: 13 |
Post Options
Thanks(0)
Quote Reply
Posted: 14 February 2008 at 3:49am |
|
Oleg,
In fact dll is loading successfully once and it doesn't have Neutral language. if (szFileName) { if (/*CXTPPropExchangeXMLNode::IsXMLSupported()*/0) // Try to load from XML. Needs IE 4.0 installed { Thanks |
|
![]() |
|
souren
Newbie
Joined: 05 February 2008 Status: Offline Points: 13 |
Post Options
Thanks(0)
Quote Reply
Posted: 15 February 2008 at 2:05pm |
|
any idea?
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 17 February 2008 at 5:01am |
|
Hello, Please attach dll you tried to load.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
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 |