Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Registry difference between win 9x and NT
Message
De
22/01/2003 09:41:01
 
 
À
22/01/2003 08:52:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00744211
Message ID:
00744228
Vues:
12
>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.


You haven't posted a code sample so it's not easy to diagnose. If you are using VFP's INI class (from the Component Gallery), this should work. An INI file is just text so you can also read it into a variable with
lcODBCIni = FileToStr("C:\WINNT\ODBC.INI")
and parse it line by line ( with ALINES() ) for example, to find what you are looking for.

HTH


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform