Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Resource alerts after adding XTToolkitPro.rc
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Resource alerts after adding XTToolkitPro.rc

 Post Reply Post Reply
Author
Message
d324 View Drop Down
Groupie
Groupie


Joined: 16 April 2007
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote d324 Quote  Post ReplyReply Direct Link To This Post Topic: Resource alerts after adding XTToolkitPro.rc
    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.
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 22 May 2007 at 12:53am

Hi,

Please show call stack for such asserts from Calendar files.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
d324 View Drop Down
Groupie
Groupie


Joined: 16 April 2007
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote d324 Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 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
Back to Top
d324 View Drop Down
Groupie
Groupie


Joined: 16 April 2007
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote d324 Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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: 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
Back to Top
d324 View Drop Down
Groupie
Groupie


Joined: 16 April 2007
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote d324 Quote  Post ReplyReply Direct Link To This Post 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.

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.047 seconds.