Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Registry difference between win 9x and NT
Message
From
22/01/2003 09:41:01
 
 
To
22/01/2003 08:52:54
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00744211
Message ID:
00744228
Views:
8
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform