Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Conventions for writing to Registry
Message
From
21/03/2006 04:09:23
 
 
To
20/03/2006 19:01:24
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01105821
Message ID:
01106125
Views:
25
Hi Dragan,

>>We are talking *user* specific settings. Where do you put the .INI file for each user?
>
>In the app directory, one ini file per user - based on their login name, or some key derived from it. Or, as I said in another message, in a memo in users.dbf.
>

Using a memo file is a different argument and, as I replied to Marcia, putting all the INI's where they are accessible to all users pretty much rules out their use for any security related settings.

>Then there's app level settings, one ini per app. And the workstation level ini, just as Tracy said - directory locations etc, which may depend on drive mappings - even though I don't have a problem with that, they all map the same. But they may have different printer settings, so the preferred printers are a geographical thing to set properly - if one workstation consistently printed on a printer that was at the other end of the hall, I'd surely hear about it :).

But all these variations can also be handled in the registry using the HKEY_CURRENT_USER, HKEY_USERS/Default and HKEY_LOCAL_MACHINE hives.

Of course the argument for using the registry is mainly relevant if the app depends on the windows login for identification. But if it does then you have the added advantage of allowing users to log on to any machine on a domain and still obtain their chosen preferences (ala roving profiles) - can't do that with INIs.

Regards,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform