![]() |
StatusBar and static linkinh with MFC |
Post Reply
|
| Author | |
Damsku
Newbie
Joined: 14 April 2007 Location: Finland Status: Offline Points: 17 |
Post Options
Thanks(0)
Quote Reply
Topic: StatusBar and static linkinh with MFCPosted: 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
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 May 2007 at 8:27am |
|
Hi,
You missed to add MFC resources to your rc file.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Damsku
Newbie
Joined: 14 April 2007 Location: Finland Status: Offline Points: 17 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
Damsku
Newbie
Joined: 14 April 2007 Location: Finland Status: Offline Points: 17 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 May 2007 at 8:34am |
|
afxres.rc i meant :)
|
|
|
damsku
|
|
![]() |
|
Damsku
Newbie
Joined: 14 April 2007 Location: Finland Status: Offline Points: 17 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 10 May 2007 at 1:33am |
|
Hi,
Check MFC folder - they are in INDICATE.RC.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Damsku
Newbie
Joined: 14 April 2007 Location: Finland Status: Offline Points: 17 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
Damsku
Newbie
Joined: 14 April 2007 Location: Finland Status: Offline Points: 17 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
sasank
Newbie
Joined: 16 May 2007 Location: India Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
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 |