ODBC DSN?
can you give us an example of using this function?
Quote
"Todd" <t...@compunetresources.com> wrote in message
news:97gnqe$hdd11@bornews.inprise.com...
Quote
> "Murat Karabek" <mu...@mikrobeta.com.tr> wrote in message
news:3a9bcf94_2@dnews...
Quote
> > hi,
> > can i create an ODBC System/User DSN in Delphi programmaticly and how? i
> > will use myodbc driver for mysql database.
> Save this as a unit and add it to your project:
> unit ODBC;
> interface
> Uses Windows;
> Const
> ODBC_ADD_DSN=1;
> ODBC_CONFIG_DSN=2;
> ODBC_REMOVE_DSN=3;
> ODBC_ADD_SYS_DSN=4;
> ODBC_CONFIG_SYS_DSN=5;
> ODBC_REMOVE_SYS_DSN=6;
> ODBC_REMOVE_DEFAULT_DSN=7;
> Function SQLConfigDataSource(HwndParent:HWND;FRequest:WORD;Driver:PChar;
> Attributes:Pchar):boolean;Stdcall;
> implementation
> Function SQLConfigDataSource;external 'odbccp32.dll' name
'SQLConfigDataSource';