Page 1 of 1

Unidac Error

Posted: Tue 24 Dec 2013 20:07
by mfbrowne
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

Re: Unidac Error

Posted: Wed 25 Dec 2013 08:18
by AndreyZ
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.

Re: Unidac Error

Posted: Wed 25 Dec 2013 14:25
by mfbrowne
Thank you for replying. I have found the problem at this point and hope that things will be ok for now.

Mike

Re: Unidac Error

Posted: Wed 25 Dec 2013 15:34
by AndreyZ
You are welcome. Feel free to contact us if you have any further questions about UniDAC.