Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Icon not found in task dialog
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Icon not found in task dialog

 Post Reply Post Reply
Author
Message
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Topic: Icon not found in task dialog
    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?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 06 August 2008 at 4:36am
Hi,
 
Maybe again problem with toolkit resources in static build ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.