App Settings & configurations

Hi,
I am new to windows development and I was wondering, what would be the best way to save an application settings without being accessible to app users. I thought of XML config file but this defeat it being "hidden". Will embedded resources file do the job  I hope so but how  :) 

I was reading about resx files and found out it's different than .resources files. Can anyone give me any hint/article/example

Thanks so much.


Answer this question

App Settings & configurations

  • Solid Fun

    I don't know much about the icons/images I just typically embed them in my executable, but I have not done anything that required alot of icons/images.

    As far as saving application settings I believe the general consensus among the .Net developers on the forums, <A href="http://weblogs.asp.net">blogs</A>, and <A href="http://discuss.develop.com">mailing lists</A> are to use xml files.

    Here is a <A href="http://staff.develop.com/candera/weblog/stories/2003/02/23/sonOfXmlserializersectionhandler.html">sample </A> from Craig's Blog that uses serialization to make it simple to read and write your settings to and xml file.

    As far as where to store the xml files some people say use Isolated Storage (which I have not yet experimented with) or write them out to the users profile not the program files directory because you have to be an admin to write files there. There are some articles/conversations about how writing settings to the "programs file" is bad but I can't seem to find any right now.

    Just a couple of thoughts.

  • ppkapo

    I would like to know more about this too.

    It seems there could be a multitude of approaches to this.
    I don't want to reinvent the wheel and am looking for common processes for dealing with 
    icons and images as well as other resources(app config ect.).

    In general how are programmers managing resources
    Do they make thier own icons/images or are standard sets available
    Where do they get images/icons if they don't make thier own
    I'm not a graphics desinger :(
    Do programmers use the .resx and .resource file types  Based on what criteria
    I would really appreciate your thoughts on this.

    tia,
    Todd



  • AlexInAustralia

    hi,
     i too hav this problem.  I am using xml file for my app configuration, but i want to hide app setting from my users of the app. I was told that it would be good if i store the app setting is resx.  but how could i do it. it would be appreciable if anyone gives a solution to this.

  • abc_elipse

    Did you get anywhere with this  - Same problem

    Regards

    Maurice

  • App Settings & configurations