Print Page | Close Window

afxCurrentResourceHandle == NULL

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=22098
Printed Date: 09 May 2024 at 3:49am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: afxCurrentResourceHandle == NULL
Posted By: potato2013
Subject: afxCurrentResourceHandle == NULL
Date Posted: 08 December 2013 at 2:59am
Hi, I get this problem when the statme is

CXTPResizePropertySheet dlg(AFX_IDS_APP_TITLE, 0, 0, xtpResizeNoVertical);

how to do it?



Replies:
Posted By: kstowell
Date Posted: 10 December 2013 at 1:05am
Hi, you need to derive a class from CXTPResizePropertySheet and add your pages in the constructor for that class, then you can show your dialog like so:

CYourDialog dlg; 
dlg.DoModal();

Take a look at the EditListBox sample application for a complete example.

Cheers!


-------------
Kirk Stowell, President and CEO
CODEJOCK SOFTWARE SOLUTIONS<


Posted By: potato2013
Date Posted: 11 December 2013 at 12:15am
I did it,  thanks.



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