![]() |
Problem about Menu Customization |
Post Reply
|
| Author | |
yanlv
Groupie
Joined: 23 June 2008 Location: China Status: Offline Points: 23 |
Post Options
Thanks(0)
Quote Reply
Topic: Problem about Menu CustomizationPosted: 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. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
yanlv
Groupie
Joined: 23 June 2008 Location: China Status: Offline Points: 23 |
Post Options
Thanks(0)
Quote Reply
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. |
|
![]() |
|
yanlv
Groupie
Joined: 23 June 2008 Location: China Status: Offline Points: 23 |
Post Options
Thanks(0)
Quote Reply
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. |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 04 August 2008 at 7:19am |
|
Hi,
Rebuild your debug version. Have to work.
|
|
|
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 |