XTPReport custom control fails in DLL |
Post Reply |
Author | |
devil20
Groupie Joined: 29 June 2006 Location: UK Status: Offline Points: 38 |
Post Options
Thanks(0)
Posted: 16 July 2010 at 3:20am |
Hi
I am trying to use XTPReport custom control in extension .dll using MFC shared dll. When i am trying to create dialog using DoModal it fails and shows nothing as error. If i this move this resouce dialog to exe then it's working fine. Any idea why ? Alex |
|
smanian
Newbie Joined: 02 July 2010 Location: India Status: Offline Points: 3 |
Post Options
Thanks(0)
|
In Debug Mode weather you are getting any assert statement ?
Weather the Report Control is mapped correctly in DDX if it is mapped correctly you can comment it nad in the onInitDialog() you can attach the custom Control to xtpReportControl |
|
Subbu
|
|
devil20
Groupie Joined: 29 June 2006 Location: UK Status: Offline Points: 38 |
Post Options
Thanks(0)
|
Hi
I am not getting any assert statement in Debug mode. Report control is maaped correctly to DDX. I tried to debug code it never reaches to DDX_Control functions. Even if donot attach control to code and Just add custom control in resouce then also it shows nothing. Any clue ? |
|
devil20
Groupie Joined: 29 June 2006 Location: UK Status: Offline Points: 38 |
Post Options
Thanks(0)
|
Hi
I found solution may be useful to some others. Just add this line to your extension dll entry point. XTPDrawHelpers()->RegisterWndClass(hInstance, XTPREPORTCTRL_CLASSNAME, CS_DBLCLKS); Simply register the control before loading dll. May be codejoke support team is quiet busy on those days :) Forgot their customers.....who havn't paid for support. |
|
Harald
Newbie Joined: 11 August 2010 Status: Offline Points: 6 |
Post Options
Thanks(0)
|
Thanks a lot for this solution!!
I spent 3 days with debugging until I've found this entry. It worked for me after I added CS_GLOBALCLASS.
Regards
|
|
Alex G.
Groupie Joined: 22 December 2004 Location: Germany Status: Offline Points: 74 |
Post Options
Thanks(0)
|
Thanks a lot.
After updating our app to 17.0.0, some of my dialogs weren't working anymore. Adding this line early in app start sequence was the key !! Thanks Alex |
|
devil20
Groupie Joined: 29 June 2006 Location: UK Status: Offline Points: 38 |
Post Options
Thanks(0)
|
Pretty old post and still useful :)
|
|
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 |