Alexander,
What is the syntax for the SQLGetPrivateProfileString? I am unable to find any documentation or examples of its use.
Thanks,
Chris
>Hi,
>
>On NT platform ODBC settings are stored in registry instead of ODBC.ini. So the recommended way to access these settings is to use SQLGetPrivateProfileString, which retrieves data from ODBC.ini on Win9X platform and works with registry on NT platform.
>HTH,
>Alexander
>>Hello all,
>>
>>I am trying to figure out why the code I wrote to obtain the SourceDB key from the ODBC.ini entry in the registry works on a win 9x machine but not on a NT 4.0 machine. Does anybody have any idea why? I search the knowledge base here and found an artice that refers to using SQLGetPrivateProfileString but I can not find any information on the ODBC API function.
>>
>>Any help is greatly appreciated.
Chris Frybarger
IET, Inc.
3539 Glendale Ave.
Toledo, OH 43614
Phone: (419) 385-1233
Fax: (419) 385-0885