Re: .INI in VB.Net?
- From: "Herfried K. Wagner [MVP]" <hirf-spam-me-here@xxxxxx>
- Date: Fri, 4 Jul 2008 00:53:34 +0200
"SurturZ" <surturz@xxxxxxxxxxxxxxxx> schrieb:
I find it inexplicable that they don't. Maybe it is because with certain
deployments each user login has a separate copy of the app, so changes to
settings for all users on a computer can't be done this way??
You are giving the reason why it's not possible to write application-scoped settings. The current setting would depend on the value persisted by the user who used the application for the last time. This would not make much sense.
I've always liked .INI files, but I find the argument list of
GetPrivateProfileString painful. I always end up wrapping it in another
function so I can get an .INI setting in one line of code.
Fortunately a wrapper can be written once and used several times. There is no need to reinvent the wheel for each application.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
.
- Follow-Ups:
- Re: .INI in VB.Net?
- From: SurturZ
- Re: .INI in VB.Net?
- References:
- Re: .INI in VB.Net?
- From: Herfried K. Wagner [MVP]
- Re: .INI in VB.Net?
- From: Cor Ligthert[MVP]
- Re: .INI in VB.Net?
- From: SurturZ
- Re: .INI in VB.Net?
- Prev by Date: Re: .INI in VB.Net?
- Next by Date: Re: Visual Basic .NET & named pipes
- Previous by thread: Re: .INI in VB.Net?
- Next by thread: Re: .INI in VB.Net?
- Index(es):
Relevant Pages
|