Compact 2013 Ebook

17.1 Introduction
Created by djones on 6/25/2013 7:04:35 AM

Managed Code Introduction

Managed Code for Windows Embedded Compact 2013 involves coding in C# or Visual Basic. Unlike the desktop C++ is not an option. In the Compact/CE Embedded Windows context, a variant of the desktop .NET Framework is used which has reduced features. .NET compact Framework 3.9 is used with Compact 2013 which is essentially the 3.5 Compact Framework plus some improvements honed on Windows Phone 7.  Managed Code application development whether on the desktop or in the Compact context facilitates rapid application development (RAD) as the UI is quick to develop with the Visual Designer (like Blend) and the properties/events/methods programming to UI in code behind is much simpler than native code given such tools as Intellisense, Rich Libraries etc.

In this chapter the same GetTime application is implemented in Managed Code as was developed in Native Code and XAML for Windows Embedded. Whilst it is a rather trivial exercise in this context compared to the former implementation, it is used as the basis for more complex Managed Code techniques such as Platform Invoke (calling native code from Managed Code) and Callbacks (from Native Code to Managed Code).

Topics covered in the chapter:

  • Managed Code GetTime Application (C# and VB)
  • Managed Code Debugging
  • Managed Code Platform Invoke
  • Managed Code call to Native Code DLL.
  • Managed Code DLL
  • Managed Code Callbacks from Native Code
  • Managed Code Access to a Web Service
  • Including Managed Code in the Operating System Image

Setup

Activities in this chapter require:

  • A suitable target system, eg VCEPC
  • A Compact 2013 OS running on the target that
    • Supports Managed Code.
    • Has KITL
    • A built and installed SDK
    • Has the CoreCon files
    • The Generic OS as covered in chapter 13 is suitable.
  • A second instance of Visual Studio 2012 (Application Development IDE) with App Builder and the OS SDK installed, as per the previous (SDK) chapter: 
    • It can be on the same development system or another.
    • It must have local network connectivity with the target, with DHCP available.

NEXT: 17.2 Managed Code C# GetTime Application

print

Click here to provide feedback and input

  Comments

There is no comment.

Turkish porno izle video site in rokettubeporno izle