Migrating old code to visual studios 2012 |
Post Reply |
Author | |
grantguglielmo
Newbie Joined: 28 June 2017 Status: Offline Points: 3 |
Post Options
Thanks(0)
Posted: 28 June 2017 at 2:14pm |
I am trying to migrate an old application(~2008) to compile in visual studios 2012, but it seems like the newest version of toolkit pro doesn't support some of the old reportcontrol code. Specifically i get errors like:
1>c:\products_complete\app\dumpview.cpp(210): error C2661: 'CXTPReportRow::InitRow' : no overloaded function takes 2 arguments 1>c:\products_complete\app\dumpview.cpp(334): error C2065: 'm_nPopulatedRecordsCount' : undeclared identifier 1>c:\products_complete\app\dumpview.cpp(362): error C2065: 'm_pRecords' : undeclared identifier 1>c:\products_complete\app\dumpview.cpp(689): error C2065: 'm_arrScreenRows' : undeclared identifier Here is line 362 for the m_pRecords error: ((CVirtualRecords *)m_pRecords)->SetVirtualMode(pVirtualRecord, nCount); Is there any sort of documentation that list changes that broke support for older versions? If not, does anyone know how to fix errors like these?
|
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
Hello,
CXTPReportRow::InitRow(CXTPReportControl* pControl, CXTPReportRecord* pRecord) replaced with InitRow(CXTPReportControl *pControl, CXTPReportSection *pSection, CXTPReportRecord *pRecord) m_nPopulatedRecordsCount allocated in CXTPReportSection (Source\ReportControl\XTPReportSection.h) Geter is CXTPReportSection::GetPopulatedRecordsCount() for SetVirtualMode use CXTPReportControl::SetVirtualMode(CXTPReportRecord* pVirtualRecord, int nCount, int nFields) m_arrScreenRows moved to CTXPReportRows
Regards, Oleksandr Lebed |
|
grantguglielmo
Newbie Joined: 28 June 2017 Status: Offline Points: 3 |
Post Options
Thanks(0)
|
Thanks, for the help. I had another question about the Draw function in CTXPReportRow, it looks like a lot of new arguments were added. What were the changes to the new Draw?
|
|
olebed
Admin Group Joined: 01 July 2014 Location: Ukraine Status: Offline Points: 841 |
Post Options
Thanks(0)
|
Hello,
Only CRect rcClip was added to Draw method from 2008 year. CXTPReportRow::Draw(CDC *pDC, CRect rcRow, CRect rcClip, int nLeftOffset, CXTPReportRecordMergeItems &mergeItems) Instead of CRect rcClipBox = m_pControl->GetReportRectangle(); in code below. It is for properly support of drawing fixed (frozen) rows. Regards, Oleksandr Lebed |
|
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 |