Compile fails under Borland C++ Builder 5 professional

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
TheoLang
Posts: 4
Joined: Wed 20 Dec 2006 21:39

Compile fails under Borland C++ Builder 5 professional

Post by TheoLang » Wed 20 Dec 2006 21:45

Hello,

Unfortunatly the compile fails.
In module MyCall.hpp in structure MYSQL_BIND and MYSQL_BIND503 i get
a message like "declaration unterminated" ( translated from german )
on the line TMySqlFieldType buffer_type.

In the moment i work with the demo. But i would really like to by it, if i would be able to use wiht C++ Builder 5.

In the designer it works great. I can open the connection and see the data in the grid.

Thanks for any help

TheoLang
Posts: 4
Joined: Wed 20 Dec 2006 21:39

Post by TheoLang » Wed 20 Dec 2006 22:50

i have set both lines on comment and now i can compile.
And it seems to work but in the moment i am doing just
simple things.

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Fri 22 Dec 2006 17:01

Please supply us with exact version of C++Builder and MyDAC.

TheoLang
Posts: 4
Joined: Wed 20 Dec 2006 21:39

DBAccess->ChangeCursor

Post by TheoLang » Thu 28 Dec 2006 22:15

Hello,

i have C++Builder Version 5.0 Professional Build 12.34
and MyDAC 4.40.0.21

Till today everything was working. But now i run into a problem. I mention it in this thread because the reason might be my trick to overcome the compiling problem.

I want to switch off the executing cursor. But i cant access the symbol
"DBAccess". The compiler tells me "symbol undefined".

So "DBAccess->ChangeCursor = False" is not possible.

#pragma link "DBAccess" is included in the header of the source.

Thanks

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Fri 29 Dec 2006 08:35

Try to omit the unit name in the command:

Code: Select all

ChangeCursor = false;
or use the following syntax:

Code: Select all

Dbaccess::ChangeCursor = false;

TheoLang
Posts: 4
Joined: Wed 20 Dec 2006 21:39

Post by TheoLang » Fri 29 Dec 2006 09:52

thanks,

ChangeCursor=false;

is working fine.

DanielH
Posts: 10
Joined: Tue 01 Jun 2010 13:51

Post by DanielH » Tue 01 Jun 2010 14:05

Hello,

I have the same problem with Embarcadero RAD Studio 2010 (Version 14.0.3615.26342 , C++ and Delphi) and MyDac (5.90.0.58 for RAD Studio 2010):

In module MyCall.hpp in structure MYSQL_BIND and MYSQL_BIND503 i get
a message like "declaration unterminated" ( translated from german )
on the line TMySqlFieldType buffer_type.

In the moment I work with the demo. But I would really like to by it later.

Thanks for any help.

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Wed 02 Jun 2010 14:05

I could not reproduce the problem. Please try to reinstall MyDAC.
If it doesn't solve the problem, please specify exact steps to reproduce the problem.

DanielH
Posts: 10
Joined: Tue 01 Jun 2010 13:51

Post by DanielH » Fri 04 Jun 2010 10:58

Hello,

I reinstalled MyDAC,but I have the same error.
By the way,it is the trial version from MYDAC (5.90.0.58 for RAD Studio 2010), sorry.

My Project is a VCL form application.

Steps:
- adding a TMyConnection component on the main form (drag&drop),
at this time the *.hpp files will be included.

- try to compile the project,the error occurs:
In module MyCall.hpp in structure MYSQL_BIND and MYSQL_BIND503
a message like "declaration unterminated" ( translated from german )
on the lines with "TMySqlFieldType buffer_type".

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Fri 04 Jun 2010 13:24

Please, unistall MyDAC, find all MyCall.*, *dac*.bpl, and *dac*.lib files on your PC and delete them. After this reinstall MyDAC.

DanielH
Posts: 10
Joined: Tue 01 Jun 2010 13:51

Post by DanielH » Tue 08 Jun 2010 08:06

I tried your steps,but there is still the same error.

When I rename "TMySqlFieldType buffer_type"
to "TMySqlFieldType _buffer_type" in the Mycall.hpp, I can compile my project and it seems to work :wink:

Post Reply