Icon not found in task dialog |
Post Reply |
Author | |
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
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?
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Maybe again problem with toolkit resources in static build ?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
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.
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
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?
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
Strangely, I solved it by simply upgrading to 12.0.1. Perhaps the DLL was somehow damaged... dunno.
|
|
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 |