Saving application settings in registry

  • Is it possilbe to save several application settings in the registry instead of saving them in files?


    Or are the any problems that can occur (for example voltage cutoff while saving into the registry)?

  • Yes this is possible. A lot of WindowsCE developers use the registry to store some application data. If you only need to store some small data only this really makes sense.
    The registry is stored in a file in FFSDISK. It also features some mechnisms to make sure that power-outages during a modification do not damage the registry.
    Furthermode registry changes are only updated in FFSDISK when calling RegFlushKey().


    If you need to store a lot of data than a separate file or database might be the better solution. E.g. WindowsCE features a small database API that might support you in this situation.
    <!-- m --><a class="postlink" href="http://msdn.microsoft.com/en-us/library/ee489739.aspx">http://msdn.microsoft.com/en-us/library/ee489739.aspx</a><!-- m -->
    <!-- m --><a class="postlink" href="http://blogs.msdn.com/b/ce_base/archive/2006/02/02/cedb-vs-edb.aspx">http://blogs.msdn.com/b/ce_base/archive ... s-edb.aspx</a><!-- m -->

    Software developer, F&amp;S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.