Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Bug when loading language dll?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Bug when loading language dll?

 Post Reply Post Reply
Author
Message
souren View Drop Down
Newbie
Newbie
Avatar

Joined: 05 February 2008
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote souren Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
souren View Drop Down
Newbie
Newbie
Avatar

Joined: 05 February 2008
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote souren Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
souren View Drop Down
Newbie
Newbie
Avatar

Joined: 05 February 2008
Status: Offline
Points: 13
Post Options Post Options   Thanks (0) Thanks(0)   Quote souren Quote  Post ReplyReply Direct Link To This Post Posted: 15 February 2008 at 2:05pm
any idea?
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 17 February 2008 at 5:01am

Hello,

Please attach dll you tried to load.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.