Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - XTPReport custom control fails in DLL
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

XTPReport custom control fails in DLL

 Post Reply Post Reply
Author
Message
devil20 View Drop Down
Groupie
Groupie
Avatar

Joined: 29 June 2006
Location: UK
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote devil20 Quote  Post ReplyReply Direct Link To This Post Topic: XTPReport custom control fails in DLL
    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
Back to Top
smanian View Drop Down
Newbie
Newbie
Avatar

Joined: 02 July 2010
Location: India
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote smanian Quote  Post ReplyReply Direct Link To This Post Posted: 16 July 2010 at 2:10pm
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
Back to Top
devil20 View Drop Down
Groupie
Groupie
Avatar

Joined: 29 June 2006
Location: UK
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote devil20 Quote  Post ReplyReply Direct Link To This Post Posted: 22 July 2010 at 2:30am
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 ?
Back to Top
devil20 View Drop Down
Groupie
Groupie
Avatar

Joined: 29 June 2006
Location: UK
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote devil20 Quote  Post ReplyReply Direct Link To This Post Posted: 23 July 2010 at 6:34am
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.

Back to Top
Harald View Drop Down
Newbie
Newbie


Joined: 11 August 2010
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Harald Quote  Post ReplyReply Direct Link To This Post Posted: 05 November 2012 at 6:20am
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
Back to Top
Alex G. View Drop Down
Groupie
Groupie


Joined: 22 December 2004
Location: Germany
Status: Offline
Points: 74
Post Options Post Options   Thanks (0) Thanks(0)   Quote Alex G. Quote  Post ReplyReply Direct Link To This Post Posted: 01 February 2016 at 4:01am
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
Back to Top
devil20 View Drop Down
Groupie
Groupie
Avatar

Joined: 29 June 2006
Location: UK
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote devil20 Quote  Post ReplyReply Direct Link To This Post Posted: 01 February 2016 at 6:08am
Pretty old post and still useful :)
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.250 seconds.