Print Page | Close Window

Resource alerts after adding XTToolkitPro.rc

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=7204
Printed Date: 12 November 2025 at 11:52pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Resource alerts after adding XTToolkitPro.rc
Posted By: d324
Subject: Resource alerts after adding XTToolkitPro.rc
Date Posted: 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.



Replies:
Posted By: Oleg
Date Posted: 22 May 2007 at 12:53am

Hi,

Please show call stack for such asserts from Calendar files.


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


Posted By: d324
Date 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.


Posted By: Oleg
Date 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


Posted By: d324
Date 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.


Posted By: Oleg
Date 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


Posted By: d324
Date 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.




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