在使用VC、VB、Delphi等高级语言编写数据库应用程序时,采用接VIODBC访问数据库,需要配置ODBC数据源。让用户手动配置ODBC数据源,是一件比较困难的工作,不利于数据库应用程序的分发。为了方便数据库应用程序的使用,可以让程序自动配置ODBC数据源。文章以Delphi为开发环境,介绍在应用程序中动态加载ODBC用户数据源的方法。%While using database program wrtitten by high-level language such as VC.VB and Delphi, it is often necessary to configure the ODBC data source to access the database. Man- ual configuration of ODBC data source may be difficult for ordinary users and it is also against the distr can largely faci ta source in De bution of database. Automatically confuguration of ODBC source by database itate the use of database. This essay introduces dynamic loading of ODBC da- phi enviroment.
展开▼