Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Registry.vcx in FFC
Message
De
27/12/1999 21:58:10
 
 
À
27/12/1999 20:13:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00309030
Message ID:
00309047
Vues:
24
>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...
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform