Print Page | Close Window

Problem about Menu Customization

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=11578
Printed Date: 15 September 2025 at 1:26am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem about Menu Customization
Posted By: yanlv
Subject: Problem about Menu Customization
Date 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.



Replies:
Posted By: Oleg
Date 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


Posted By: yanlv
Date 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.



Posted By: yanlv
Date 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.


Posted By: Oleg
Date Posted: 04 August 2008 at 7:19am
Hi,
Rebuild your debug version. Have to work.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net