Page 1 of 1

How do use Batch-Update in C++ (Step: Define Datatype of Params)

Posted: Wed 27 Jul 2016 13:06
by asc
I try to convert the Code from http://blog.devart.com/using-batch-oper ... nents.html to C++. With one exception successfully:

Query1.Params[0].DataType := ftInteger;

if try:
Query1->Params[0]->DataType = ftInteger;
=> Both Pointer to structure required on left side of -> oder ->*

Query1->Params[0].DataType = ftInteger;
=> 'DataType' is not a member of 'TMSParams'

hmm...
Query1->Params[0][0]->DataType = ftInteger;
=> No Compile error, no program error (i have 5 Params)
Query1->Params[1][0]->DataType = ftInteger;
=> Access Violation

Have one a C++ solution?

Re: How do use Batch-Update in C++ (Step: Define Datatype of Params)

Posted: Wed 27 Jul 2016 14:24
by ViktorV
The similar question has already been discussed on our forum. Follow the link viewtopic.php?f=5&t=32517 for details.