Print Page | Close Window

Icon not found in task dialog

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=11737
Printed Date: 19 May 2024 at 10:45pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Icon not found in task dialog
Posted By: znakeeye
Subject: Icon not found in task dialog
Date Posted: 06 August 2008 at 4:27am
We are experiencing problems with the task dialog in one of our projects. We get an assert at XTPTaskDialogClient.cpp(843). It seems the main icon cannot be found!
 
Unfortunately, I cannot debug into the source code because the project is somehow screwed. Though, I believe this could have something to do with a missing manifest (the controls look "2000" in themed XP).
 
Any ideas?



Replies:
Posted By: Oleg
Date Posted: 06 August 2008 at 4:36am
Hi,
 
Maybe again problem with toolkit resources in static build ?


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


Posted By: znakeeye
Date Posted: 06 August 2008 at 5:21am
No, unfortunately this is a DLL (no automatic linking btw). I wonder if it could have something to do with unicode-settings etc (I know MAKEINTRESOURCEW is being used)? That mystical "treat wchar_t as built-in type" perhaps? Also, this application is based on an OCX. Could that have something to do with it?
 
All I know is that this task dialog works perfectly in another project, so it must be some strange setting somewhere.


Posted By: Oleg
Date Posted: 07 August 2008 at 1:48am
Anyway try to add #include "XTToolkitPro.rc" in res2 file of your dll...
 
Are you loading standard icon(TD_ERROR_ICON, TD_WARNING_ICON, etc) or your own ?


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


Posted By: znakeeye
Date Posted: 07 August 2008 at 3:47am
Yeah, that's exactly what I was aiming at. An ID-conflict perhaps? I've read here that you use 9000-1000 (and commands 35000-35003).
 
I'll check it later. Thanks.
 
Yes, we are using the standard icons. But I see this in your resource file:
#define XTP_IDI_TASKERROR               9426
 
Surely, overloading your 9426-icon with some other resource could yield a problem?


Posted By: Oleg
Date Posted: 08 August 2008 at 6:26am
Hi,
 
Difficult to say whithout your code.. :(
Also try to recompile whole project with toolkit, step into our code and check why XTPResourceManager()->LoadIcon return FALSE.


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


Posted By: znakeeye
Date Posted: 10 August 2008 at 6:21am
Strangely, I solved it by simply upgrading to 12.0.1. Perhaps the DLL was somehow damaged... dunno.



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