A
angleli1981
Unregistered / Unconfirmed
GUEST, unregistred user!
我写了个程序是关于ODBC的,下面是部分代码
procedure AddODBCDSN;
var
cemdsn, dbq : String;
begin
dbq := HomeDir + DatabaseSubDir + DBFile;
cemdsn := 'DSN=cem'#0 +
'DESCRIPTION=Credit Evaluate Manager数据库别名'#0 +
'DBQ=' + dbq +#0 +
'FIL=MS Access;'#0#0;
SQLConfigDataSource(0, ODBC_ADD_DSN, 'Microsoft Access Driver (*.mdb)', PChar(cemdsn));
end;
编译时总是报错,话没声明SOLconfigDatasource如何解决?
有例就发到angleli1981@163.com
procedure AddODBCDSN;
var
cemdsn, dbq : String;
begin
dbq := HomeDir + DatabaseSubDir + DBFile;
cemdsn := 'DSN=cem'#0 +
'DESCRIPTION=Credit Evaluate Manager数据库别名'#0 +
'DBQ=' + dbq +#0 +
'FIL=MS Access;'#0#0;
SQLConfigDataSource(0, ODBC_ADD_DSN, 'Microsoft Access Driver (*.mdb)', PChar(cemdsn));
end;
编译时总是报错,话没声明SOLconfigDatasource如何解决?
有例就发到angleli1981@163.com