MANAGED CODE APPLICATIONS AND WINDOWS EMBEDDED COMPACT 7
A managed code application for a Windows Embedded Compact 7 system requires the .NET Compact Framework. The framework version 3.5 is available as a Catalog component. There is the standard version of this in the Catalog as well as a headless version. Managed code needs to be written in C# or VB. The Compact Framework does not support managed C++. When a managed code application is compiled, a Microsoft Intermediate Language (MSIL) file is created, not a binary executable or DLL. This code is CPU-independent. That is why a Compact Framework project can run on a variety of Compact 7/CE platforms and CPUs without rebuilding. The OS just needs the required version of the framework.
To create a managed code project in Visual Studio, you choose a Smart Device project, Windows CE Target Platform, and .NET CF Version 3.5 (can be version 2.0 as well), and then choose a template.
To develop the application you need two instances of Visual Studio: One for the OS and one for the managed code. The OS needs the Corecon component for Compact 7 (http://corecon4ce.codeplex.com). You then run the OS, run the two Corecon components (ConmanClient2 followed by CMAccept) on the target, build the application on the second instance, configure Options/DeviceTools/Devices for Platform Builder, connect to the device from this instance, deploy the application, test it. . .
It should be simpler than that and it can be!
Besides this “traditional” manner ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access