C++ Builder中如何用ADO或BDE连接SQLite数据库?

C++ Builder中怎么用ADO或BDE连接SQLite数据库???
C++   Builder中怎么用ADO或BDE连接SQLite数据库,并把数据显示到DBGrid里面,请高手赐教.急求!!!

------解决方案--------------------
1、先连接数据库。
创建一个DataModule窗体,在其中添加一个ADOConnection控件,然后点ADOConnection-> ConnectionString 后面的...,再点build, 再根据自己的数据库选择驱动程序,SQLite数据库需要什么驱动待查,但是你可以自己试一试,选好后点击下一步,会让你输入数据库别名,帐号密码等,这个因不同数据库驱动而不同,输入完成后可以点测试连接看是否连接成功.

2、测试成功后,在DataModule窗体中添加一个ADOQuery控件,这是个可以写入sql语句的控件,具体如何写入和控制请查阅相关资料。

3、在DataModule窗体中添加一个DataSource控件,然后把属性DataSet指向ADOQuery

4、创建一个Form窗体,在其中添加DBGrid控件,然后将其DataSource指向DataSource

ok
------解决方案--------------------
建议是用SQLite内建的dbexpress元件来连结
以下是原文:
1 Locate the dbxdrivers.ini on your computer.
2 Add the following lines to it:

[Installed Drivers]
SQLite=1

[SQLite]
LibraryName=C:\....\DbxSQLite.dll
GetDriverFunc=getSQLDriverSQLite
VendorLib=C:\....\sqlite.dll
RoleName=Cache=2000|TextLength=1024

3 Fire up Delphi
4 Add a TSqlConnection component
5 Set the DriverName to "SQLite "
6 Open the component editor ( "Edit connection
properties ")
7 Create a new connection and set the Database to a
file (If you don 't have a file it will be created
upon connecting)
8 Create some ClientDataSet structure
enter your SQL and build your applications

主要就是自已改一下ini档就可以立即使用了,dbexpress又快又稳
之后用SQLConnection+SQLTable/SQLQuery+DataSet+ClientDataSet+DataSource,最后由DBGrid接住数据即可。