Re: Config file to turn on/off features ?

From: mdb (m_b_r_a_y_at_c_t_i_u_s_a__d0t__com)
Date: 11/19/04


Date: Fri, 19 Nov 2004 11:18:30 -0800


"=?Utf-8?B?ZHc=?=" <dw@discussions.microsoft.com> wrote in
news:B5F6E2D6-BBA1-4B33-8FCA-EB0388F8EBD1@microsoft.com:

> I am working on a project where I need to be able to turn on/off some
> features based on whether the user has purchased a particular feature.
> And, the current UI has a tab control which I need to hide (or
> remove) tabs based on this as well. My original plan was to use an
> XML config file and use that to determine whether a user gets to see a
> feature (or a tab page) and then remove or hide as necessary.

I've used that technique several times in the past... works fine. Other
places you could store configuration are in the registry or a database.
The determination of which one to use should be made by your particular
requirements... XML files for configuration are easy for users to edit,
and don't make unnecessary alterations to the system, but may also allow
the user to corrupt the config file. Registry is a bit harder for users to
get into (they need to know about "the registry" to start with, and they
need to know where you are storing your data) but "require" special
routines to remove the values when the program is removed. Database can
make it very difficult for users to change values outside your program but
require either additional programs to run (MSDE or mySQL for example) or
require some kind of network connection.

Bottom line: XML for config files works great and is easy to use and clean
up, but can cause problems if you have curious (and careless) users.

-mdb



Relevant Pages

  • Re: Great SWT Program
    ... text in the user's language of choice is a feature of GUIs and not ... literal tab characters in code. ... characters into spaces" feature on. ...
    (comp.lang.java.programmer)
  • =?windows-1252?Q?Re=3A_Upgrade_Mac_MSO_v=2EX_To_Mac_?= =?windows-1252?Q?MSO_2004_To_Mac_MSO_
    ... Bob hasn't mentioned it because it isn't a word processing feature per se; it's more like some kind of stripped-down outliner with a healthy dose of eye candy. ... individual slides - one at a time - is about as close to sheet tabs as you ... content on "tab XYZ" may not be on that tab the next time you go to it. ...
    (microsoft.public.mac.office)
  • Re: Format/Backgorund/Color nor Fill Effects
    ... if this one feature is crucial and the workaround isn't ... If you can make do with the workaround for a while, ... >> - On the Layout tab, ... >> Jay Freedman ...
    (microsoft.public.word.newusers)
  • Re: Multilevel lists in Word 2007, including an additional charact
    ... Word has also a feature that mimicks the WordPerfect feature you mentioned, ... The advance field and the asterisk should be the last thing in the ... number and tab and then answer ... the asterisk should line up with the main numbering line. ...
    (microsoft.public.word.numbering)
  • Re: Tab & Backspace make indents move
    ... I don't use this feature with Tab and Backspace at all, ... when I'm dealing with outline numbering because it enables me to use Tab and ...
    (microsoft.public.word.docmanagement)