Re: Windows Mobile config / properties file
- From: r_z_aret@xxxxxxxxxxxx
- Date: Wed, 18 Jul 2007 15:17:47 -0400
On Wed, 18 Jul 2007 07:02:00 -0700, Trafi
<Trafi@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
I have been writing Java code for the past 9 years and am just starting to
write Windows Mobile code. In Java there is a Properties class that allows
Java apps to read and write application settings / configuration to a file in
a key=value format.
I know that I could write my configration to the registry, but I have a
requirement that states that I cannot use the registry. I must save all of
my application configuration information to a file in the applications
default directory. I could do this in XML, but I am looking for the correct
way of doing this. I have read about ConfigurationManager, but it appears
that is not available in the CF.
I will be reading and writing all of the common data types in the proeprties
(int, bool, string, ...).
Is there something that is comperable to the Properties class in Java?
I'm not familiar with that class, so I can't comment. But you could
use "ini" files. They've been around longer than the registry. For
some possibly useful code, go to CodeProject (www.codeproject.com) and
look up
ini file
The relative merits of registry vs ini files have been discussed
several times, sometimes a bit heatedly. For one reasonable
discussion, see the 14-22 May 2003 thread called "Registry instead of
ini - Why?!?!" in comp.os.ms.windows.programmer.win32 (yes, Windows
CE/Mobile has enough in common with "big" windows to make that
newsgroup in general and that discussion in particular relevant).
-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com
.
- Prev by Date: Re: Remote Database Connection with PocketPC/MSAccess Front End
- Next by Date: Re: Services with pocket pc
- Previous by thread: Creating two relations in a dataset in Compact Framework
- Next by thread: Re: Windows Mobile config / properties file
- Index(es):
Relevant Pages
|