Configuration File Confusion in .NET Compact Framework 2.0

You Can Take it With You

Syndication

News

  • Don't miss the next Windows Mobile Webcast... Unit Testing for Mobile Devices: http://msevents.microsoft.com/CUI/WebCastEventDetails.aspx?EventID=1032382824&EventCategory=4&culture=en-US&CountryCode=US.

I've been seeing a lot of conversations lately regarding the status of Configuration File support in .NET CF 2.0 - it seems like maybe a clear word on .NET CF 2.0 Configuration File support might be in order. J

You'll recall from my post Running .NET Compact Framework 1.0 Applications with the .NET Compact Framework 2.0 Runtime a few weeks ago that you can use a Configuration File to control which version of the .NET Compact Framework Runtime your application runs in. Unfortunately, the addition of Runtime version control with Configuration Files does not equal Configuration File support.

Although, .NET CF 2.0 does include Configuration File support for Runtime control, it does not provide application-based Configuration File support. Basically none of the classes in the System.Configuration namespace are provided.

So what to do? Like in so many other cases, its OpenNETCF.org to the rescue.

Their OpenNETCF.Configuration namespace provides just about everything you'll need to use Configuration Files within your application. The OpenNETCF.Configuration namespace is Class name and Member name compatible with the Full .NET Framework's System.Configuration namespace so your existing knowledge of Configuration File programming makes the OpenNETCF classes immediately useful.


Posted Jan 23 2006, 08:27 AM by jim-wilson

Comments

Albert wrote re: Configuration File Confusion in .NET Compact Framework 2.0
on 05-05-2006 1:24 AM
hi Jim,

i have been searching high and low for some information regarding on how to use a part of the openNETCF 2.0 and i stumbled on to this blog. i am trying to extract PropertyItem information for JPEG files for WinCE 5.0 using the IImageDecoder interface from OpenNETCF.Drawing.Imaging. i get a pointer to this interface from the ImagingFactoryClass. the problem is that (at least thats what i think the problem is) in calling IImageDecoder::getPropertyItem, i need to give it a OpenNETCF.Drawing.Imaging.PropertyItem object which i cannot instantiate because the compiler is telling me that it does not have a constructor. i have also tried just called the getPropertyItem method directly without initiallize a PropertyItem object but gives me the a System.Runtime.InteropServices.COMException. i have been searching all over the net for help but have not gotten any. so any help or tips would be greatly appreciated. please send me an email at "akinga@sfu.ca" if you can give me any help at all. thanks very much for your time and ill look forward to your reply.

Add a Comment

(required)  
(optional)
(required)  
Remember Me?