Print Page | Close Window

Problem displaying CXTPReportControl

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=12348
Printed Date: 29 September 2024 at 7:27am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem displaying CXTPReportControl
Posted By: RolandoE.
Subject: Problem displaying CXTPReportControl
Date Posted: 06 October 2008 at 6:41pm
Hello,
 
I am having a problem displaying CXTPReportControl from within a dialog box locate within a Resource DLL.
 
If I display CXTPReportControl from within a dialog box located within the Resources of the EXE I have no problems. The dialog box displaying CXTPReportControl from the Resource DLL does not display.
 
In Release mode I get an empty dialog box - no other controls are displayed. In Debug mode the program asserts because the dialog box is not created and I try to issue a command on a non-existant dialog box.
 
When creating the dialog box for the Resource DLL I made sure all values and constant remaind the same.
 
Any ideas? Thanks for any help.

Rolando E. Cruz



-------------
Rolando E. Cruz-Marshall



Replies:
Posted By: Oleg
Date Posted: 07 October 2008 at 2:40am
Hi,
 
In constructor of your dialog add
 
m_wndRepot.RegisterWindowClass(AfxGetResourceHandle());


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


Posted By: RolandoE.
Date Posted: 07 October 2008 at 4:31am
Oleg,
 
As usual you are quick with a response and dead-on with the proper solution!!
 
Your suggestoin worked like a charm! Thanks for your help.
 
Rolando E. Cruz


-------------
Rolando E. Cruz-Marshall


Posted By: nathanielh
Date Posted: 21 April 2009 at 8:51pm
Thanks! This solved my problem also.


Posted By: znakeeye
Date Posted: 13 August 2010 at 9:23am
Just want to point out that in some rare scenarios the class must be unregistered upon window destruction! I encountered weird resource problems in a project where some extension DLLs had some ID conflicts etc (EXE -> Ext DLL -> Ext DLL -> CDialog). Unregistering the class made the problem go away.
 
Took me a week to figure this one out :P


-------------
PokerMemento - http://www.pokermemento.com/



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