Print Page | Close Window

Bug when loading language dll?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=9581
Printed Date: 14 November 2025 at 7:17pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Bug when loading language dll?
Posted By: souren
Subject: Bug when loading language dll?
Date 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.




Replies:
Posted By: Oleg
Date 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


Posted By: souren
Date 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


Posted By: souren
Date Posted: 15 February 2008 at 2:05pm
any idea?


Posted By: Oleg
Date Posted: 17 February 2008 at 5:01am

Hello,

Please attach dll you tried to load.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net