SetResourceFile problem |
Post Reply |
Author | |
SebasB
Newbie Joined: 15 July 2005 Status: Offline Points: 9 |
Post Options
Thanks(0)
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
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Check in some resource editor that your dll has bitmap with id = 9304
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
SebasB
Newbie Joined: 15 July 2005 Status: Offline Points: 9 |
Post Options
Thanks(0)
|
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
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
SebasB
Newbie Joined: 15 July 2005 Status: Offline Points: 9 |
Post Options
Thanks(0)
|
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.
|
|
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 |