From: Preben Randhol <randhol+abuse@pvv.org>
Subject: Re: A standard package for config files is needed
Date: Fri, 31 May 2002 16:39:22 +0000 (UTC)
Date: 2002-05-31T16:39:22+00:00 [thread overview]
Message-ID: <slrnaff9pr.27t.randhol+abuse@kiuk0156.chembio.ntnu.no> (raw)
In-Reply-To: tulJ8.9347$7q5.169326745@newssvr14.news.prodigy.com
On Thu, 30 May 2002 08:34:33 GMT, tmoran@acm.org wrote:
> In a particular Windows program of mine the user can modify the color
> settings (via the usual Windows color dialog), and the program will
> save his preferences in the registry. This is done with:
Can I get a Linux version of this program?
> type Shelf_Palettes is record ...
> procedure Stash_Palette is new Claw.Registry.Write(Shelf_Palettes);
> ...
> Stash_Palette(Claw.Registry.HKEY_CURRENT_USER,
> "Software\Decision Aids\Shelves",
> "Palette",
> Saved_Palette);
>
> That's pretty simple. It appears to me you are suggesting that instead
> I should write code to convert every element of Shelf_Palettes to a string
> and write it out preceded with some suitable, human understandable,
> "name=", and also write code to read such stuff back in, complete with
> error handling when the user has botched up that text file.
No. The name would of course be Palette like you use for the registry.
But I encourage you to use the Windows registry as long as you only care
about windows users. Just don't claim that your code is portable because
you use Ada.
> a tremendous regression and I can't imagine anybody doing it. Why should
> the config file be an easily edited ASCII file? Did everyone enjoy
> editing .ini files in old Windows so much? How often in current Windows
> programs do users modify the config by doing things in the app (like the
> color palette above), and how often do Windows users change a
> configuration by using regedit?
Sorry but I simply don't care for Windows only solutions.
Preben
next prev parent reply other threads:[~2002-05-31 16:39 UTC|newest]
Thread overview: 130+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-28 10:59 A standard package for config files is needed Preben Randhol
2002-05-28 12:09 ` Martin Dowie
2002-05-28 12:09 ` Preben Randhol
2002-05-28 16:33 ` Darren New
2002-05-28 18:10 ` achrist
2002-05-28 20:28 ` Darren New
2002-05-28 22:35 ` Mark Biggar
2002-05-29 3:13 ` Hyman Rosen
2002-05-29 7:18 ` Pascal Obry
2002-05-29 14:40 ` The commercial world needs Ada was " Robert C. Leif
2002-05-29 16:29 ` Darren New
2002-05-29 23:26 ` Robert C. Leif
2002-05-30 0:10 ` Darren New
2002-05-29 17:08 ` Hyman Rosen
2002-05-29 19:34 ` Larry Kilgallen
2002-05-29 11:01 ` Preben Randhol
2002-05-29 16:23 ` Darren New
2002-05-29 21:42 ` achrist
2002-05-30 9:53 ` Preben Randhol
2002-05-30 14:45 ` Gautier
2002-05-30 17:00 ` achrist
2002-05-28 20:44 ` Marin David Condic
2002-05-29 11:05 ` Preben Randhol
2002-05-29 18:09 ` Ted Dennison
2002-05-29 18:59 ` Ted Dennison
2002-05-29 19:49 ` Marin David Condic
2002-05-30 17:52 ` Ted Dennison
2002-05-30 18:21 ` Preben Randhol
2002-05-30 22:55 ` Darren New
2002-05-31 15:52 ` Ted Dennison
2002-05-31 21:31 ` tmoran
2002-06-01 15:39 ` Stephen Leake
2002-06-03 13:05 ` Marin David Condic
2002-05-30 20:00 ` Marin David Condic
2002-05-31 6:43 ` Mats Karlssohn
2002-05-31 22:04 ` Robert C. Leif
2002-05-29 2:18 ` SteveD
2002-05-29 11:07 ` Preben Randhol
2002-05-29 12:57 ` SteveD
2002-05-29 13:05 ` Preben Randhol
2002-05-29 13:52 ` SteveD
2002-05-29 13:57 ` Preben Randhol
2002-05-29 16:30 ` Darren New
2002-05-29 19:24 ` Simon Wright
2002-05-30 9:54 ` Preben Randhol
2002-05-29 14:41 ` Robert C. Leif
2002-05-29 14:59 ` Martin Dowie
2002-05-29 15:30 ` Preben Randhol
2002-05-29 15:32 ` Preben Randhol
2002-05-29 19:29 ` Simon Wright
2002-05-31 16:26 ` Preben Randhol
2002-05-31 16:01 ` Ted Dennison
2002-06-01 2:27 ` Robert C. Leif
2002-06-01 16:38 ` Ted Dennison
2002-06-01 17:48 ` Robert C. Leif
2002-06-01 18:11 ` Pascal Obry
2002-06-02 3:30 ` XML and Ada was " Robert C. Leif
2002-06-02 6:52 ` Pascal Obry
2002-06-02 16:29 ` XML and Ada Robert C. Leif
2002-06-02 7:54 ` XML and Ada was RE: A standard package for config files is needed Gerhard Häring
2002-06-02 15:51 ` Darren New
2002-06-02 19:02 ` Preben Randhol
2002-06-02 20:52 ` Gerhard Häring
2002-06-03 6:10 ` Preben Randhol
2002-06-02 22:06 ` Stephen Leake
2002-06-03 2:17 ` Robert C. Leif
2002-06-04 18:48 ` Georg Bauhaus
2002-06-05 14:17 ` Robert C. Leif
2002-06-06 14:15 ` Georg Bauhaus
2002-06-07 0:33 ` Robert C. Leif
2002-06-07 10:55 ` Georg Bauhaus
2002-06-03 2:21 ` Robert C. Leif
2002-06-03 14:20 ` Marin David Condic
2002-06-04 1:39 ` SteveD
2002-06-03 6:13 ` Preben Randhol
2002-06-04 18:54 ` Georg Bauhaus
2002-06-09 20:01 ` Stephen Leake
2002-06-09 22:24 ` Eric G. Miller
2002-06-10 12:31 ` Stephen Leake
2002-06-12 4:17 ` Eric G. Miller
2002-06-01 20:36 ` Preben Randhol
2002-06-02 3:30 ` Robert C. Leif
2002-06-01 20:31 ` Preben Randhol
2002-05-29 7:22 ` Volkert
2002-05-29 14:41 ` Robert C. Leif
2002-05-29 18:26 ` tmoran
2002-05-30 7:41 ` Volkert Barr
2002-05-30 8:34 ` tmoran
2002-05-30 9:03 ` Volkert Barr
2002-05-30 13:39 ` Marin David Condic
2002-05-31 16:25 ` Ted Dennison
2002-05-31 16:50 ` Preben Randhol
2002-05-31 22:24 ` Ted Dennison
2002-06-01 15:44 ` Stephen Leake
2002-05-31 17:25 ` Marin David Condic
2002-06-01 13:51 ` Preben Randhol
2002-06-03 13:23 ` Marin David Condic
2002-06-04 11:46 ` Preben Randhol
2002-06-01 15:53 ` Stephen Leake
2002-05-30 15:08 ` Stephen Leake
2002-05-30 16:07 ` Preben Randhol
2002-05-31 16:39 ` Preben Randhol [this message]
2002-05-31 21:31 ` tmoran
2002-05-31 9:05 ` Georg Bauhaus
2002-05-31 11:01 ` Florian Weimer
2002-05-31 13:15 ` Marin David Condic
2002-06-01 15:46 ` Stephen Leake
2002-06-01 16:50 ` Darren New
2002-05-31 13:34 ` Stephen Leake
2002-05-29 19:05 ` Ted Dennison
2002-05-30 7:49 ` Volkert Barr
2002-05-31 16:42 ` Preben Randhol
2002-05-29 17:56 ` Chad R. Meiners
2002-05-29 18:25 ` Ted Dennison
2002-05-30 19:58 ` Jacob Sparre Andersen
2002-05-30 20:12 ` Marin David Condic
2002-05-31 7:37 ` Preben Randhol
2002-05-31 13:21 ` Marin David Condic
2002-05-31 13:46 ` Marin David Condic
2002-06-01 11:23 ` Preben Randhol
2002-06-01 11:10 ` Preben Randhol
2002-06-01 15:50 ` Stephen Leake
2002-06-03 12:53 ` Jacob Sparre Andersen
2002-05-30 23:08 ` Darren New
2002-05-31 13:30 ` Stephen Leake
2002-06-03 1:00 ` Robert I. Eachus
2002-06-03 6:24 ` Preben Randhol
2002-06-03 15:54 ` Darren New
2002-06-03 16:49 ` Darren New
2002-06-09 21:27 ` Stephen Leake
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox