From: goodier on
Hi,

I am port some code of .net framework 2.0 to .net compact framework.
There is code that use System.Environment.GetEnvironmentVariable to get
environment variable as some options but it is not supported by compact
framework?

Can anyone suggest if there is some convensions to port this code? for
example, what do people using compact framework normally use for program
options?

Thanks,
From: Simon Hart [MVP] on
Usually what people do in this regard is use there own config file then
serialize to XML this is what we do. Other folks use the OpenNETCF
implementation which implements a ConfigurationManager which reads app.config
files.
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com


"goodier" wrote:

> Hi,
>
> I am port some code of .net framework 2.0 to .net compact framework.
> There is code that use System.Environment.GetEnvironmentVariable to get
> environment variable as some options but it is not supported by compact
> framework?
>
> Can anyone suggest if there is some convensions to port this code? for
> example, what do people using compact framework normally use for program
> options?
>
> Thanks,
From: Neil Cowburn on
On 2008-06-27 10:34:00 +0100, goodier <goodier(a)discussions.microsoft.com> said:

> There is code that use System.Environment.GetEnvironmentVariable to get
> environment variable as some options but it is not supported by compact
> framework?

Windows CE does not maintain a set of environment variables, so I think
you'll have an incredibly hard time porting the code to the .NET
Compact Framework.

--
Neil Cowburn MVP
Principal Partner
OpenNETCF Consulting

 | 
Pages: 1
Prev: .NET CF 3.5
Next: SendKeys in Compact framework