![]() |
StatusBar and static linkinh with MFC |
Post Reply ![]() |
Author | |
Damsku ![]() Newbie ![]() Joined: 14 April 2007 Location: Finland Status: Offline Points: 17 |
![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
![]() ![]() ![]() ![]() ![]() |
#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 |
![]() ![]() ![]() ![]() ![]() |
afxres.rc i meant :)
|
|
damsku
|
|
![]() |
|
Damsku ![]() Newbie ![]() Joined: 14 April 2007 Location: Finland Status: Offline Points: 17 |
![]() ![]() ![]() ![]() ![]() |
Actually, ID_INDICATOR_XXX IDs are defined in afxres.h but the associated string is nowhere in an RC.. :o
|
|
damsku
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
![]() ![]() ![]() ![]() ![]() |
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 |
![]() ![]() ![]() ![]() ![]() |
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 |
![]() ![]() ![]() ![]() ![]() |
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 ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |