Re: .INI in VB.Net?



"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/>

.



Relevant Pages

  • Re: VB6 in Vista
    ... putting everything into current user app. ... the current per-user settings that I now save to per-machine, ... I don't want separate installs a la Linux, ... recognize the differences on home/office machines. ...
    (microsoft.public.vb.general.discussion)
  • Source Control or something else?
    ... I have two web pages with separate forms that both dump ... into one Access database. ... what should those settings be? ... Server that need to be in place. ...
    (microsoft.public.frontpage.client)
  • Re: How to mail merge with a folder option?
    ... gets sent to the Fiery queue with the right print settings. ... run a macro containing the following code. ... > letter to the printer as a separate print job so that each gets folded ... > Doug Robbins - Word MVP ...
    (microsoft.public.word.mailmerge.fields)
  • Re: Mail merge with graphics direct to PDF
    ... I've gone into print setup before running the merge and changed these ... settings, but it still reverts to asking for file name and opening ... the Adobe PDF printer and uncheck the boxes for those features. ... separate files. ...
    (microsoft.public.word.mailmerge.fields)
  • Re: Asp.net application inside another Asp.net Application
    ... Open machine.config to see which settings are defined thay way. ... > The sub-application must be configured as an application in the IIS manager. ... > Otherwise it will not be a separate application and cannot have its own ... >> new application in that folder along with bin folder, web.config, ...
    (microsoft.public.dotnet.framework.aspnet)