yaniv Posted June 26, 2003 Posted June 26, 2003 What do you think is the best way to keep CONST'S that use for properties for an app. should i create a text file that will deployed in the user machine, or there is a better way? Quote
Moderators Robby Posted June 26, 2003 Moderators Posted June 26, 2003 The values for a constant cannot come from a variable or a text file. The way I understand your title is that you don't want to expose properties to the user. Did I not understand? Quote Visit...Bassic Software
JABE Posted June 27, 2003 Posted June 27, 2003 The .exe.config file is usually used for storing app settings but it's easily accessible by the user. You can try using the Windows Registry. Quote
yaniv Posted June 27, 2003 Author Posted June 27, 2003 I don't think my user's will touch the .exe.config. I tink i just don't know how to use it. Quote
yaniv Posted June 27, 2003 Author Posted June 27, 2003 Oh, I saw the title again, the problem is my English. What I meant is "how do I keep properties that the user gives me". Sorry. Quote
JABE Posted June 27, 2003 Posted June 27, 2003 There's a class to read settings from the .exe.config file but no corresponding class for writing settings exist. To write to it, you have to treat it just like any other XML file. For storing user settings, I'd recommend that you use the Windows Registry if possible. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.