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

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
asc
Posts: 13
Joined: Wed 03 Feb 2010 10:32
Location: Germany, Siegen (NRW)

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

Post by asc » Wed 27 Jul 2016 13:06

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?

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

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

Post by ViktorV » Wed 27 Jul 2016 14:24

The similar question has already been discussed on our forum. Follow the link viewtopic.php?f=5&t=32517 for details.

Post Reply