Print Page | Close Window

SetResourceFile problem

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=10164
Printed Date: 27 April 2024 at 2:53am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SetResourceFile problem
Posted By: SebasB
Subject: SetResourceFile problem
Date Posted: 09 April 2008 at 4:19pm
HI,
 
I use XTPResourceManager()->SetResourceFile(sLangDll) to set the toolkit resource dll to use at the beginning of my program. sLangDll is a valid path to a toolkit resource dll. My program assert at line 809 of XTEditListBox.cpp
VERIFY(XTPResourceManager()->LoadBitmap(&bmp, XT_IDB_LISTEDIT));"
 
My program is an ATL project and I'm calling it from AutoCAD VBA.
 
Any idea of what I'm doing wrong ?
 
Thanks



Replies:
Posted By: Oleg
Date Posted: 10 April 2008 at 1:27am
Hi,
Check in some resource editor that your dll has bitmap with id = 9304


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


Posted By: SebasB
Date Posted: 10 April 2008 at 7:09am
Hi,
 
I checked with a resource editor and ToolkitPro1113vc80.dll contain a bitmap with id = 9304. In my application, I call AfxSetResourceHandle with my application resource dll so maybe Toolkit try to load id 9304 from my dll instead of Toolkit dll. Do I have to include toolkit.rc in my resource dll ?
 
Thanks


Posted By: Oleg
Date Posted: 10 April 2008 at 12:48pm
Hi,
but sLangDll is path to toolkit dll ?
 
Just trace it - check what handle assigned in SetResourceFile and check that its same value used in LoadBitmap
 
... actually if you use toolkitr as dll you don't need additional SetResourceFile  call. try comment it.


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


Posted By: SebasB
Date Posted: 10 April 2008 at 2:04pm
sLangDll is path to "ToolkitPro.ResourceEn.dll" or "ToolkitPro.ResourceFr.dll" depending if I want toolkit resources in english or in french. This is working fine, but XT_IDB_LISTEDIT is neutral and include in ToolkitPro1113vc80.dll instead of being include in "ToolkitPro.Resourcexxx.dll" which is good but the call to
VERIFY(XTPResourceManager()->LoadBitmap(&bmp, XT_IDB_LISTEDIT));" failed.
I finaly fix my problem by defining XT_INIT_BY_REGULAR_DLL and recompiling ToolkitPro as explained in file XTFunctions.h. I think that's because my dll is not an extension dll.



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