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
- Next message: Eric: "Re: Creating CHM files from assembly"
- Previous message: JoeWood: "RE: any .Net class does the similar work as legacy HTMLDocument object"
- In reply to: dw: "Config file to turn on/off features ?"
- Next in thread: dw: "Re: Config file to turn on/off features ?"
- Reply: dw: "Re: Config file to turn on/off features ?"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Eric: "Re: Creating CHM files from assembly"
- Previous message: JoeWood: "RE: any .Net class does the similar work as legacy HTMLDocument object"
- In reply to: dw: "Config file to turn on/off features ?"
- Next in thread: dw: "Re: Config file to turn on/off features ?"
- Reply: dw: "Re: Config file to turn on/off features ?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|