Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Problem about Menu Customization
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem about Menu Customization

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


Joined: 23 June 2008
Location: China
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote yanlv Quote  Post ReplyReply Direct Link To This Post Topic: Problem about Menu Customization
    Posted: 25 July 2008 at 4:12am
I want to add a customization button on the toolbar, and did the same thing with this website:
http://www.codejock.com/support/articles/mfc/commandbars/cb_2.asp
but it crashed when I click the customization button on this line:
        CXTPCustomizeSheet cs(GetCommandBars());
and got this message:

Debug Assertion Failed!
Program:C:\test.exe
File: afxwin1.inl
Line: 418
....


I checked the example: Xtreme ToolkitPro v11.1.0\Samples\CommandBars\CustomThemes, But couldn't find what's wrong.
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: 28 July 2008 at 2:44am
Guess resources not found. if you link application statically you have add Toolkit resources.
#incuide "XTToolkitPro.rc"
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
yanlv View Drop Down
Groupie
Groupie


Joined: 23 June 2008
Location: China
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote yanlv Quote  Post ReplyReply Direct Link To This Post Posted: 29 July 2008 at 5:30am
I don't think it's because I didn't add toolkit resources.
In the example: example: Xtreme ToolkitPro v11.1.0\Samples\CommandBars\CustomThemes
It also didn't #include "XTToolkitPro.rc". I tested it for link application statically and succeeded.

By the way:
when I add #include "XTToolkitPro.rc" in stdafx.h. I got the compiling error:
Compiling...
test.cpp
Automatically linking with ToolkitPro1121vc60SD.lib
e:\mylib\xtreme toolkitpro v11.2.1\source\calendar\res\resource-neutral.rc(28) : error C2143: syntax error : missing ';' before 'constant'
e:\mylib\xtreme toolkitpro v11.2.1\source\calendar\res\resource-neutral.rc(28) : error C2501: 'LANGUAGE' : missing storage-class or type specifiers
e:\mylib\xtreme toolkitpro v11.2.1\source\calendar\res\resource-neutral.rc(28) : fatal error C1004: unexpected end of file found

Any idea? Thanks.

Back to Top
yanlv View Drop Down
Groupie
Groupie


Joined: 23 June 2008
Location: China
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote yanlv Quote  Post ReplyReply Direct Link To This Post Posted: 04 August 2008 at 5:46am
oleg: you are right.
when I add #include "XTToolkitPro.rc" in my .rc file instead of stdafx.h,
release .exe is right for  static compile. But debug .exe is still wrong.
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: 04 August 2008 at 7:19am
Hi,
Rebuild your debug version. Have to work.
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.047 seconds.