Re: INI Files -- ODBC.ini
> For the data source to work, I need to make entries into the
> ODBC.ini file and the registry. If there is an easy way to do this,
> please let me know.
Frosty: See the following articles in the Microsoft Knowledge Base:
HOWTO: Programmatically Create a DSN for SQL Server with VB
( http://support.microsoft.com/support.../q184/6/08.asp )
HOWTO: Create and Remove a DSN in Visual Basic
( http://support.microsoft.com/support.../q171/1/46.asp )
---
Phil Weber
Re: INI Files -- ODBC.ini
Phil Weber wrote in message <38d8ee3d@news.devx.com>...
> > For the data source to work, I need to make entries into the
> > ODBC.ini file and the registry. If there is an easy way to do this,
> > please let me know.
>
>Frosty: See the following articles in the Microsoft Knowledge Base:
>
> HOWTO: Programmatically Create a DSN for SQL Server with VB
> ( http://support.microsoft.com/support.../q184/6/08.asp )
>
> HOWTO: Create and Remove a DSN in Visual Basic
> ( http://support.microsoft.com/support.../q171/1/46.asp )
>
>---
>Phil Weber
To add on, yes, there are API calls that manage INI files (including the
reading and writing of entries); Karl has a good INI example on his web
site: http://www.mvps.org/vb/index2.html?samples.htm
However, for the reason _why_ you asked, I'd go with the KB articles that
Phil pointed out. =)
--
Colin McGuigan