>I'm trying to use the OdbcReg class in the Registry lib in the FFC. I'm running on '98, if that makes a difference in this case (Soon to be NT/WS).
>
>I tried the few lines of sample code in Advanced OOP, but that didn't update the array. I followed thru the code and the OdbcReg.EnumODBCData() function passes HKEY_CURRENT_USER TO THE OpenKey function in the Registry parent class.
>
>I believe the problem is that all my registry settings are under HKEY_LOCAL_MACHINE. I verified what appears to be a problem with the class by modifying the class and re-running the code.
>
That's possible; I'm running under NT at the moment. System DSNs are definitely under HKLM\Software\ODBC, and User DSNs under HKCU. The driver configs are under HKLM as well.
>Am I correct in my analysis? Or is there a better way to read the system's ODBC settings?
>
The basic FFC registry class works adequately; if you find you don't like the FFC ODBC registry class, subclass it and change the behavior, or create one that does what you'd want. There's a reason that you have the source code...