Print Page | Close Window

CXTReportControl

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=8421
Printed Date: 22 November 2024 at 5:59am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTReportControl
Posted By: manoj
Subject: CXTReportControl
Date Posted: 13 October 2007 at 2:51am
Hi
 
I am using CXTReportControl on a dialog its working fine
After moving all dialog to My Resource dll CXTReportControl is giving error or unable to create please tell me what should I do for this
 
Kind Reards
 
Manoj Jangid


-------------
===========================
मनोज कुमार जांगिड
Systweak Software Pvt. Ltd.
मो: +919829273011



Replies:
Posted By: Oleg
Date Posted: 14 October 2007 at 7:30am
Hw do you place Report to dialog ?

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: sserge
Date Posted: 14 October 2007 at 10:45am
Looks like following topic will help you: http://forum.codejock.com/forum_posts.asp?TID=5211 - http://forum.codejock.com/forum_posts.asp?TID=5211 .

To your dialog constructor you have to add a following:

CTestDlgRepCtrl::CTestDlgRepCtrl(CWnd* pParent) : CDialog(CTestDlgRepCtrl::IDD, pParent)
{  
    HINSTANCE hRCthisDLL = AfxFindResourceHandle(MAKEINTRESOURCE(IDD), RT_DIALOG);
    m_wndReport.RegisterWindowClass(hRCthisDLL);
}


--
WBR,
Serge


Posted By: manoj
Date Posted: 15 October 2007 at 12:55am
 

resDll = LoadLibrary(_T("ResDll.dll"));

AfxSetResourceHandle(resDll);

and using my dialogs and other resource
 
Kind Regards
 
Manoj Jangid


-------------
===========================
मनोज कुमार जांगिड
Systweak Software Pvt. Ltd.
मो: +919829273011


Posted By: Oleg
Date Posted: 15 October 2007 at 2:14am
Hi,
 
Yes, call m_wndReport.RegisterWindowClass(resDll );


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: manoj
Date Posted: 15 October 2007 at 2:40am
Application crash before this in my constructor...
 
  MyAppD.exe!CXTPReportPaintManager::CXTPReportPaintManager()  + 0x64e bytes 

  MyAppD.exe!CXTPReportControl::CXTPReportControl()  + 0x343 bytes 

> MyAppD.exe!CDlgResult::CDlgResult()  Line 97 + 0x2b bytes C++
  MyAppD.exe!AfxDlgProc(HWND__ * hWnd=0x00030df6, unsigned int message=272, unsigned int __formal=265724, unsigned int __formal=265724)  Line 28 + 0x10 bytes C++
Kind Regards
 
Manoj Jangid


-------------
===========================
मनोज कुमार जांगिड
Systweak Software Pvt. Ltd.
मो: +919829273011


Posted By: manoj
Date Posted: 15 October 2007 at 2:43am
same problem with your given sample project
http://forum.codejock.com/uploads/20061006_043431_RepCtrlOnCFormV.zip - http://forum.codejock.com/uploads/20061006_043431_RepCtrlOnCFormV.zip
 
 
Kind Regards
 
Manoj Jangid


-------------
===========================
मनोज कुमार जांगिड
Systweak Software Pvt. Ltd.
मो: +919829273011


Posted By: Oleg
Date Posted: 16 October 2007 at 2:45am
Hi,
 
This attached project works for me :-(
 
Show call stack error for this project.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: manoj
Date Posted: 16 October 2007 at 4:01am
https://forum.codejock.com/uploads/20071016_040100_CallStackReport.zip - uploads/20071016_040100_CallStackReport.zip
 
Hi I am attaching call stack of report control sample
 
Kind Regards
 
Manoj Jangid 


-------------
===========================
मनोज कुमार जांगिड
Systweak Software Pvt. Ltd.
मो: +919829273011


Posted By: Oleg
Date Posted: 16 October 2007 at 5:16am
Hi,
 
In callstack I see that toolkit dll was not even loaded...
so
there is no dll near exe to load - copy it to debug folder
or
you use Static linking.
 
if you use static linking  you need add toolkit resources to your res\xxx.rc2 file.
#include "XTToolkitPro.rc"


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: manoj
Date Posted: 17 October 2007 at 12:35am
yes I already copy in my  rc2
#include "XTToolkitPro.rc"
and toolkit all dll in my debug folder but still crash the application
 
I am using VS2005 SP1 Windows Vista SDK installed and my OS is Windows Vista Ultimate
 
  
Kind Regards
 
Manoj Jangid


-------------
===========================
मनोज कुमार जांगिड
Systweak Software Pvt. Ltd.
मो: +919829273011


Posted By: Oleg
Date Posted: 17 October 2007 at 1:19am
It can be only resource problem. It asserts in
VERIFY(XTPResourceManager()->LoadBitmap(&bmp, XTP_IDB_REPORT_GLYPHS));
line and report can't find resource.
 
 
In attached sample you use dll but show me stack when use static version. Attach sample that you really use.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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