Re: XML, INI or Registry?

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Wapiti (testme_at_spamcatcher.org)
Date: 09/04/04


Date: Fri, 3 Sep 2004 17:21:33 -0700

Thanks Sai,

I was trying to find xml support in opennetcf earlier - but apparently
wasn't looking in the right place.

Can you help me locate a starting point to finding the right lib?

Thx.

-m

"Sai" <snemani@nospamlumedx.com> wrote in message
news:Ot1rODhkEHA.3016@tk2msftngp13.phx.gbl...
> If your settings needed to move from device to device, your desktop
> application would have to do it. Put it in a config file (xml format) and
> use the www.opennetcf.org classes to read and write config files. Each of
> the machines where the device could be docked could then run a service
> which checks for this file and pushes one down to the device. The
> architecture you are shooting for isnt apparent, but I'd say xml based
> config files is a good bet.
>
>
> "Wapiti" <testme@spamcatcher.org> wrote in message
> news:%23QxiGagkEHA.2812@tk2msftngp13.phx.gbl...
>> Should this be this difficult? Using VB.net cf, I would like to save
>> some app specific information to be retrieved by the same app at a later
>> time. For example, the user will enter a warehouse location into a text
>> field, I want to save that particular location so that the next time it
>> prompts them for a warehouse location, that location will display by
>> default. Also, program settings, such as those in typical Tools |
>> Options.
>>
>> Typically, in my VB6 days, I'd just write this info to INI files. Worked
>> great, and could copy that ini file to other PCs/Devices so they all hold
>> the same initial settings.
>>
>> How is this done in CF?
>>
>> I've tried xml files as explained in the link:
>>
>> http://www.knowdotnet.com/articles/csettings.html
>>
>> but found that often my settings would get reset to null. I'm not sure
>> that was problem in the example code, or in something I was doing.
>>
>> I'm also looking into using the registry by way of OpenNetCF.Win32
>> registry class - but then, I won't be able to copy the initial settings
>> easily from device to device... easily anyway.
>>
>> Ini files? No such thing anymore?
>>
>> How do you save app specific info?
>>
>> I'm ready to even try using csv files instead - ?
>>
>> Mike
>>
>
>



Relevant Pages

  • Re: XML, INI or Registry?
    ... > I was trying to find xml support in opennetcf earlier - but apparently ... >> If your settings needed to move from device to device, ... >> use the www.opennetcf.org classes to read and write config files. ... the user will enter a warehouse location into a text ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: XML, INI or Registry?
    ... If your settings needed to move from device to device, ... use the www.opennetcf.org classes to read and write config files. ... but I'd say xml based config files is a good ... > For example, the user will enter a warehouse location into a text field, I ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: app.config and user.config files
    ... a user of an application I have written would go hunt around with notepad ... values anyway - so it's not like I'm asking them to edit the registry ... It was this layer of protection provided by the Settings ... the fact that users get their own individual config files) to make it ...
    (microsoft.public.dotnet.framework)
  • Re: Why not XML based configurationfiles?
    ... >> your config files that are written that way. ... NO I can't - XML is unreadable for humans. ... >> foo describes the frobnick option and can be set to bar or baz. ... But the point is not just the parser. ...
    (comp.os.linux.misc)
  • Re: What Linux can learn from Windows...
    ... > how is someone who's not used to windows supposed to know that you need ... you can disable autoplay w/o going into the registry. ... >>Like I said above, many config files are in XML, or some other markup language. ...
    (alt.os.linux)