Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - StatusBar and static linkinh with MFC
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

StatusBar and static linkinh with MFC

 Post Reply Post Reply
Author
Message
Damsku View Drop Down
Newbie
Newbie


Joined: 14 April 2007
Location: Finland
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote Damsku Quote  Post ReplyReply Direct Link To This Post Topic: StatusBar and static linkinh with MFC
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 09 May 2007 at 8:27am
Hi,
You missed to add MFC resources to your rc file.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Damsku View Drop Down
Newbie
Newbie


Joined: 14 April 2007
Location: Finland
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote Damsku Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Damsku View Drop Down
Newbie
Newbie


Joined: 14 April 2007
Location: Finland
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote Damsku Quote  Post ReplyReply Direct Link To This Post Posted: 09 May 2007 at 8:34am
afxres.rc i meant :)
damsku
Back to Top
Damsku View Drop Down
Newbie
Newbie


Joined: 14 April 2007
Location: Finland
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote Damsku Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 10 May 2007 at 1:33am
Hi,
 
Check MFC folder - they are in INDICATE.RC.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Damsku View Drop Down
Newbie
Newbie


Joined: 14 April 2007
Location: Finland
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote Damsku Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Damsku View Drop Down
Newbie
Newbie


Joined: 14 April 2007
Location: Finland
Status: Offline
Points: 17
Post Options Post Options   Thanks (0) Thanks(0)   Quote Damsku Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
sasank View Drop Down
Newbie
Newbie


Joined: 16 May 2007
Location: India
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote sasank Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


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: 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
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.156 seconds.