Print Page | Close Window

StatusBar and static linkinh with MFC

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=7091
Printed Date: 14 May 2024 at 3:28pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: StatusBar and static linkinh with MFC
Posted By: Damsku
Subject: StatusBar and static linkinh with MFC
Date Posted: 09 May 2007 at 7:47am
Hi,

I have a dialog application which uses a CXTPStatusBar. Everything was fine until i change MFC to be statically linked into the project. SetIndicator seems to fail because of a string ID not found. DialogSample showed the same behavior when i changed MFC to be linked as static lib also.
What did i miss? :/
Thanks in advance.


-------------
damsku



Replies:
Posted By: Oleg
Date Posted: 09 May 2007 at 8:27am
Hi,
You missed to add MFC resources to your rc file.


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


Posted By: Damsku
Date Posted: 09 May 2007 at 8:33am
#include <afxres.h> in the rc2 file. Is that all i need to do? Cause if it is, i did that already and it doesn't help..

-------------
damsku


Posted By: Damsku
Date Posted: 09 May 2007 at 8:34am
afxres.rc i meant :)

-------------
damsku


Posted By: Damsku
Date Posted: 09 May 2007 at 8:56am
Actually, ID_INDICATOR_XXX IDs are defined in afxres.h but the associated string is nowhere in an RC.. :o

-------------
damsku


Posted By: Oleg
Date Posted: 10 May 2007 at 1:33am
Hi,
 
Check MFC folder - they are in INDICATE.RC.


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


Posted By: Damsku
Date Posted: 11 May 2007 at 7:15am
That's what MSDN was saying, but i don't have any indicate.rc in my MFC folders... :/

-------------
damsku


Posted By: Damsku
Date Posted: 11 May 2007 at 7:20am
However, i wonder if my vs install had some issues, i just finished installed the SP1 and now i have the indicate.rc and everything is working again.
Thank you for your help.
br


-------------
damsku


Posted By: sasank
Date Posted: 16 May 2007 at 10:43pm
Hi,
I am  developing an MFC regular dll using CodeJock and am linking both Codejock and MFC statically. When I click on the ColorPicker button(which is in a CXTPControlCustom)  the application throws an assertion failure in the debug build. BUt it runs fine in the Release build.
The Application runs fine in both the builds when I link MFC & codejock as a shared dll.

Please let me know what I need to change.

Thanks

Sasanka



Posted By: Oleg
Date Posted: 17 May 2007 at 8:37am

Hi,

 
You didn't include toolkit resources.
 
in your res\xxx.rc2 add
 
#include "XTToolkitPro.rc"


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



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