Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Problem displaying CXTPReportControl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem displaying CXTPReportControl

 Post Reply Post Reply
Author
Message
RolandoE. View Drop Down
Groupie
Groupie
Avatar

Joined: 19 May 2003
Location: United States
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote RolandoE. Quote  Post ReplyReply Direct Link To This Post Topic: Problem displaying CXTPReportControl
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 07 October 2008 at 2:40am
Hi,
 
In constructor of your dialog add
 
m_wndRepot.RegisterWindowClass(AfxGetResourceHandle());
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
RolandoE. View Drop Down
Groupie
Groupie
Avatar

Joined: 19 May 2003
Location: United States
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote RolandoE. Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
nathanielh View Drop Down
Newbie
Newbie


Joined: 29 July 2008
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote nathanielh Quote  Post ReplyReply Direct Link To This Post Posted: 21 April 2009 at 8:51pm
Thanks! This solved my problem also.
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post 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/
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.