![]() |
Resource alerts after adding XTToolkitPro.rc |
Post Reply
|
| Author | |
d324
Groupie
Joined: 16 April 2007 Status: Offline Points: 11 |
Post Options
Thanks(0)
Quote Reply
Topic: Resource alerts after adding XTToolkitPro.rcPosted: 21 May 2007 at 10:58pm |
|
Hi,
After I added "#include <XTToolkitPro.rc>" to my resource file, I got several resource-not-found alerts. These alerts were mostly icons and several of them were specified under a "Calendar" directory, which I don't have in my project. I clicked away the alerts after reading 5 of them. However, not all of the projects got those alerts, only some had them. And the ones that did, there doesn't seems to be any problems so far. Does anyone know what the problem is? Thanks. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 22 May 2007 at 12:53am |
|
Hi, Please show call stack for such asserts from Calendar files.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
d324
Groupie
Joined: 16 April 2007 Status: Offline Points: 11 |
Post Options
Thanks(0)
Quote Reply
Posted: 22 May 2007 at 4:17am |
|
Hi,
I'm not sure if there's a call stack, The alerts are from VC++ 6 IDE when it detected a change in rc file and reloaded it. By the way, I'm not doing anything related to Calendar. Thanks. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 22 May 2007 at 7:32am |
|
Hi
I think some program installed on you computer modify them. Maybe Antivirus or something. We don't write in code to our rc files.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
d324
Groupie
Joined: 16 April 2007 Status: Offline Points: 11 |
Post Options
Thanks(0)
Quote Reply
Posted: 22 May 2007 at 10:57pm |
|
Hi,
Sorry, I'm still very new at this. Okey, I think there must be something that I'm not doing that caused the problem. When I used the XToolKitPro AppWizard to create a project, everything was fine. When I manually added XTToolKitPro to a project, I had different problems. What I did: 1. Add "#include <XTToolkitPro.h>" to StdAfx.h 2. Add "#include <XTToolkitPro.rc>" to xxx.rc2 3. Add libc.lib,libcd.lib to Ignored libraries 4. I havn't change the MFC's classes to XTToolKitPro's, ie CXTPFrameWnd, etc. 5. I'm using static library. Problem: A VERIFY failed when document template is creating a new document. Seems like AFX_IDS_UNTITLED has gone missing. void CSingleDocTemplate::SetDefaultTitle(CDocument* pDocument) { ...... VERIFY(strDocName.LoadString(AFX_IDS_UNTITLED)); <<<< ...... } But if I just remove the .h and .rc includes, then everything's back to normal. I tested the scenario with a clean project from MFC AppWizard. Can you tell me what I did wrong or missed? Thank you for all of your help. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 May 2007 at 1:33am |
|
Its MFC resources - not codejocks. When you use static MFC you have to add its resources to exe too. add #include "afxres.rc" to your rc file.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
d324
Groupie
Joined: 16 April 2007 Status: Offline Points: 11 |
Post Options
Thanks(0)
Quote Reply
Posted: 25 May 2007 at 2:49am |
|
Hi,
That doesn't solve the problem. Anyway, I used the Xtreme Toolkit Pro AppWizard to create a new project and things are good after that. Thanks for your help. |
|
![]() |
|
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 |