What's .Net got for the mobile developer?
Published: 29 Jan 2003 09:43 GMT
What didn't make the cut?
So what parts of the standard framework were left out? All things considered, the list of omissions isn't too terrifying. Most of the classes that were removed from the Compact edition were those that represented expensive processes in terms of memory consumption or processor usage. The chief differences you'll find are:
- No ASP.Net -- Since most mobile device operating systems don't have integrated Web servers, the lack of any ASP.Net capabilities shouldn't come as a shock.
- No Web services -- Although Compact apps can consume Web services, they can't provide them, largely due to the lack of a Web server, as with ASP.Net.
- Scaled-down XML support -- Compact apps will have full support for reading and writing XML using the reader and writer classes, but they won't have support for XSLT or XPATH. These were simply too resource consumptive to include in the platform.
- No typed datasets -- This is really an issue only if you have a Web service that returns data as a typed dataset, and you want your Compact app to consume it.
- Assembly loading changes -- Compact apps will not be able to load an assembly into a domain-neutral space. This is an advanced technique that Microsoft felt most developers wouldn't miss in a mobile environment.
In addition to these items, Microsoft said it also trimmed down the size of the Compact Framework's class library by removing quite a few helper methods and classes that the designers felt were redundant.
What's still in there?
That leaves quite a bit of functionality still to be found in the Compact Framework. So much so, I think any .Net developer would be just as comfortable building apps for either version of the framework. Here are a few of the highlights:
- Full ADO.Net support -- The Compact Framework includes a full-featured version of ADO.Net, with all the things you'd expect from its big brother: Bound data controls, full support for XML, and even a native SQL Server CE provider and support for upsizing and back-end transfers to an enterprise-class RDBMS.
- Datagrids and Treeviews -- The lack of a datagrid control seriously hampered developers using Microsoft's previous entries into the mobile development arena. After receiving feedback from these folks and from beta testers, Microsoft added both controls to the standard set of GUI widgets such as text boxes, command buttons, and the like.
- Full socket API support -- If your Compact app needs some Web server-like functionality, you can create it yourself. The Compact Framework includes the full library of socket programming objects found in the full version.
- Built-in support for IR ports -- These ports are standard equipment on most PDAs, and the Compact Framework includes full support for sending and receiving data over them.
Should my app use the Compact Framework?
Like all development tools, the .Net Compact Framework has areas where it will be extremely useful -- and others where it won't. The chief drawbacks in my mind are the need to get the framework's runtime on the device in the first place and the fact that, at present, not all devices that support Windows CE will support the Compact Framework. Devices without display screens are currently particularly problematic.
For a weekly round-up of the enterprise IT news, sign up for the
Enterpise newsletter.
Find out what's where in the new Tech Update with our
Guided Tour.
Tell us what you think in the
Enterprise Mailroom.





