Print Page | Close Window

TKP 13.21 and resources 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=17682
Printed Date: 19 June 2025 at 9:50pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: TKP 13.21 and resources problem
Posted By: SMaton
Subject: TKP 13.21 and resources problem
Date Posted: 15 December 2010 at 5:54am
Hello everyone,

I'm currently working on a client's project who uses the Toolkit V13.01. In my installation, I use V13.21 (because I don't have the 13.01 installer anymore).

MFC and the toolkit are statically linked, no unicode but multibyte character set (so "SD" in this case).

Something weird is happening:

In the project I have an options dialog using the CXTPProptertyGrid class. Upon opening the dialog, CXTPPropertyGrid::CXTPPropertyGrid() is called which itself then calls "m_hCursorSplit = XTPResourceManager()->LoadCursor(XTP_IDC_VSPLITBAR);"

While the version compiled by the customer succeeds at this call, my own compile fails. The VSPLITBAR is not found with the error "[...]specific resource type cannot be found in the image file.".

To check if the resource (XTP_IDC_VSPLITBAR = 9971) is actually contained in the executable, I opened the .exe file in VS. This shows all resources within the executable. I clearly can see (and open within VS) that the bitmap is available under the Cursor resources.

The .rc2 file of my project contains the #include "XTToolkitPro.rc" entry.

I currently scratch my head because I cannot figure out, why the heck the cursor cannot be loaded.

If anyone has an idea, it would be greatly appreciated.

Edit: I just checked Release vs Debug version and it seems that either only the Debug version has the problem or the Release version simply ignores the load fail.

Thanks,
Stefan



Replies:
Posted By: znakeeye
Date Posted: 15 December 2010 at 9:52am
You obviously load your exe where a satellite language dll/xml is available.
 
XTPResourceManager() looks for localization files, and I bet it finds one - which hasn't been updated with the new resource.


-------------
PokerMemento - http://www.pokermemento.com/


Posted By: SMaton
Date Posted: 15 December 2010 at 11:17am
Unfortunately, I have recompiled all dlls etc. Yet the problem still persists. The resource assert is only thrown in Debug. Apparently the Release version silently discards the not loaded cursor and continues to work "as is".

I've checked several ways to bypass this problem (which, as I repeat, only occurs in the debug version): included the .rc in my .rc2 of the exe (where it appears in the resources within VS), the dlls (where the cursor does not appear in the dll resources), checked the release and the debug version, verified my settings, etc...



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