Problem displaying CXTPReportControl |
Post Reply |
Author | |
RolandoE.
Groupie Joined: 19 May 2003 Location: United States Status: Offline Points: 30 |
Post Options
Thanks(0)
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
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
In constructor of your dialog add
m_wndRepot.RegisterWindowClass(AfxGetResourceHandle());
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
RolandoE.
Groupie Joined: 19 May 2003 Location: United States Status: Offline Points: 30 |
Post Options
Thanks(0)
|
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
|
|
nathanielh
Newbie Joined: 29 July 2008 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
Thanks! This solved my problem also.
|
|
znakeeye
Senior Member Joined: 26 July 2006 Status: Offline Points: 1672 |
Post Options
Thanks(0)
|
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/
|
|
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 |