Using MySQL5 in BCB6
- 1. add include path to project:
a. Project -> Options -> Directories/Conditionals ->
b. add MySQL header files to the include path. ex: C:\MySQL\include
2. add mysql library
a. chage library format: type implib "C:\Program Files\Borland\CBuilder6\Lib\libmysql.lib" "C:\Program Files\MySQL\MySQL Workbench 5.2 OSS\libmysql.dll" in the windows command line
b. Project -> Add to Project ->
c. add the library generated by step 2.a to project
3. include header files in the .cpp file
a. add the following two lines before #include <vcl.h>
#include <windows.h>
#include <mysql.h>
4. then you can use mysql in your BCB project
Today's Visitors: 0 Total Visitors: 20
愛我不愛我
Sealed (Dec 15)
Only members can post a comment, Login first