Print Page | Close Window

XTPReport custom control fails in DLL

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=16960
Printed Date: 25 December 2024 at 1:07am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: XTPReport custom control fails in DLL
Posted By: devil20
Subject: XTPReport custom control fails in DLL
Date 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



Replies:
Posted By: smanian
Date 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


Posted By: devil20
Date 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 ?


Posted By: devil20
Date 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.



Posted By: Harald
Date 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


Posted By: Alex G.
Date 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


Posted By: devil20
Date Posted: 01 February 2016 at 6:08am
Pretty old post and still useful :)



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