Page 1 of 1

ApplyUpdates function On C++ Builder Rad 10.2

Posted: Mon 12 Feb 2018 03:17
by sugi
Hello,

I am using IBDAC ver 6.1.4.

When using C++ Builder ver 6, these codes runs OK

Code: Select all

const TCustomDADataSet* Tables[2] = {Dt1,Dt2};
DM->ConnDb->ApplyUpdates(Tables,1);
But on Rad 10.2, there is no such function.
On Rad 10.2, there is only ApplyUpdates() function , without any parameters.

Is there equivalent ApplyUpdates function on Rad 10.2 similar to C++ Builder ver 6?

Thanks.

Re: ApplyUpdates function On C++ Builder Rad 10.2

Posted: Tue 13 Feb 2018 13:37
by ViktorV
Thank you for the information. The issue investigation is in progress. We will inform you when we have any results.

Re: ApplyUpdates function On C++ Builder Rad 10.2

Posted: Fri 16 Feb 2018 15:02
by ViktorV
When investigating, we found that this issue is related to the difference in the work of the C++ Builder 6 and C ++ Builder Rad Studio 10.2 compilers.
In C++ Builder 6, this method has the following notation:

Code: Select all

virtual void _fastcall ApplyUpdates(const TCustomDADataSet* * DataSets, const int DataSets_Size)/* overload */;
and in C++ Builder Rad Studio 10.2:

Code: Select all

virtual void _fastcall ApplyUpdates(TCustomDADataSet* const *DataSets, const int DataSets_High)/* overload */;
To solve the issue, you should use the following code:

Code: Select all

TCustomDADataSet* const Tables[2] = {Dt1,Dt2} ;
DM->ConnDb->ApplyUpdates(Tables,1);

Re: ApplyUpdates function On C++ Builder Rad 10.2

Posted: Sat 17 Feb 2018 08:00
by sugi
Hi,

Thanks for your helps, now it worked OK.

Re: ApplyUpdates function On C++ Builder Rad 10.2

Posted: Mon 19 Feb 2018 10:17
by ViktorV
It is good to see that the problem has been solved.
Feel free to contact us if you have any further questions about our products.