May 6, 2010

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

0推薦此文章
Today's Visitors: 0 Total Visitors: 20
Personal Category: Uncategorized Articles Topic: technology / tech info / programming

誰來收藏
Loading ...
unlog_NVPO 0