Unidac Error

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
mfbrowne
Posts: 13
Joined: Mon 15 Nov 2010 00:17

Unidac Error

Post by mfbrowne » Tue 24 Dec 2013 20:07

Hello,

I am using Builder 2010 for this development.

Could someone help me get around this problem. The error I am getting is:

MySQL provider is not registered. You should add the MySQLUniProvider unit to the uses clause of any unit in your project or place the TMySQLUniProvider component on the form.

I have included the following in the program cpp file

#pragma link "myprovider140.lib"

And I have the MySqlProvider on the form.
and I still get this error. Can anyone help me in respect to this

Thanks

AndreyZ

Re: Unidac Error

Post by AndreyZ » Wed 25 Dec 2013 08:18

Hello,

Please check that .cpp file of your unit contains the following lines:

Code: Select all

#pragma link "DBAccess"
#pragma link "MySQLUniProvider"
#pragma link "Uni"
#pragma link "UniProvider"
, and .h file of your unit contains the following lines:

Code: Select all

#include "DBAccess.hpp"
#include "MySQLUniProvider.hpp"
#include "Uni.hpp"
#include "UniProvider.hpp"
Please note, that we have added OBJ files for all C++Builder versions to all our DAC products. This way, there is no need to use the line

Code: Select all

#pragma link "myprovider140.lib"
when developing an application without run-time packages. OBJ files will be included in the next UniDAC build.

mfbrowne
Posts: 13
Joined: Mon 15 Nov 2010 00:17

Re: Unidac Error

Post by mfbrowne » Wed 25 Dec 2013 14:25

Thank you for replying. I have found the problem at this point and hope that things will be ok for now.

Mike

AndreyZ

Re: Unidac Error

Post by AndreyZ » Wed 25 Dec 2013 15:34

You are welcome. Feel free to contact us if you have any further questions about UniDAC.

Post Reply