Print Page | Close Window

CXTPCustomizeSheet

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=6581
Printed Date: 04 October 2024 at 9:29pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPCustomizeSheet
Posted By: spelhatre
Subject: CXTPCustomizeSheet
Date Posted: 07 March 2007 at 9:07am
Hi,
I want to use commandbars customization.
For this I trap event XTP_ID_CUSTOMIZE and write an event handler routine.
The code can be :

CXTPCustomizeSheet dlg( GetCommandBars());
dlg.DoModal();

With this code I have an "Access violation writing" at execution for line "dlg.DoModal()"
If I press "Continue" button I have the customize dialogbox and everything is ok.
I have the same message error if I call the routine in another part of my code.
Of course I have not this problem with samples examples.
An idea?
thanks



Replies:
Posted By: Oleg
Date Posted: 07 March 2007 at 2:00pm
Hi,
I think dialog complains that you didn't add any controls to Commands page. copy some code from our sample.


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


Posted By: spelhatre
Date Posted: 08 March 2007 at 3:35am
No. I have the same problem if I add some code.
And this very simple example works fine with your examples.Try it.


Posted By: Oleg
Date Posted: 08 March 2007 at 6:01am
May be you can attach your project in issuetrack to allow us debug it?

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


Posted By: devil20
Date Posted: 09 March 2007 at 11:39pm
Hi
 
If u are using Library as static link then it may cause this problem because of resource should be included in ur .rc2 File.
 
If u are using static linked library then add toolkits resource file to .rc2 file
 
#include "ToolkitPro.rc"
 



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