用ado的情况下
先创建后缀名为.dsn的文件
然后再在程序中设置写:adoconnection.connectionstring:=Provider=MSDASQL.1;Persist Security Info=False;Extended Properties="Driver={Microsoft Visual FoxPro Driver};UID=;SourceDB=D:\db\test.dbc;SourceType=DBC;Exclusive=No;BackgroundFetch=Yes;Collate=Machine;Null=Yes;Deleted=Yes;"