• your Windows® embedded community

    eWEEK Windows for Devices - Your Windows Embedded Community

    Windows For Devices

  • home
  • news
  • embedded PCs
  • boards
  • handhelds
  • tablets
  • thin clients
  • enterprise
  • consumer
  • articles

    News

  • Home > News

        Using legacy COM objects with .NET CF 2.0

        Doug | Date: Dec 9, 2005 | Comments: 1



        • Print PDF
        • Filed Under: News

        Microsoft has recently published a pair of technical articles describing how to incorporate existing COM (Component Object Model) objects into managed code using the .NET Compact Framework, on its MSDN developer website. Version 2.0 of .NET CF has features that simplify the integration of COM objects with managed code, according to the articles.




        What's COM?

        Microsoft describes the Component Object Model (COM) as a software architecture that allows components made by different software vendors to be combined into a variety of applications. Basically, COM defines a standard for binary component interoperability that is not dependent on any particular programming language, is available on multiple platforms, and is extensible.

        According to Microsoft, COM allows developers to take advantage of Windows services. Available Microsoft COM technologies include COM+, Distributed COM (DCOM), and ActiveX Controls.

        The COM model dates back to at least 1994, well before the era of managed code. Consequently, most COM modules are written in native C. For this reason, many developers using .NET Compact Framework would like to incorporate these existing native code modules into new managed code applications.

        The two articles are summarized as follows (click each title to read the article):
        • Using COM Interop in .NET Compact Framework 2.0 -- This 31-page paper by Maarten Struys shows how to use the new COM Interop capabilities of .NET CF 2.0 and contrasts this with the techniques required to integrate native code under version 1.0 of .NET CF. The downloadable sample code runs in the new Windows Mobile 5.0 emulators that are part of the Windows Mobile 5.0 SDK.

        • Step by Step: Incorporating COM Objects into Your .NET Compact Framework 2.0 Application -- This self-paced, hands-on lab provides a more detailed look at the process of incorporating existing native COM objects into managed applications. The lab consists of three independent projects that can be done in any order. Windows XP PRofessional, Visual Studio 2005, ActiveSync 4.0, and one or both of the Windows Mobile 5.0 SDKs are required to run the projects.
        Further details on COM, including its relationship to the .NET Compact Framework, are available here.



        Related stories:
        • Microsoft releases .NET CF 2.0 redistributable
        • Paper describes advanced memory management with .NET CF
        • How to create .NET CF custom controls with Visual Studio 2005
        • Building efficient Pocket PC apps with the .NET CF
        • New book explains .NET Compact Framework programming
        • OpenNETCF.org releases smart device framework version 1.1
        • Using .NET CF to write a Pocket PC SMS messaging app
      • Newsletter
      • RSS
      • Twitter
      • Got a Tip?
      • Linux Devices

    most read

    • ARM Windows 8 may nix desktop
    • Autonomous robot's built around a Windows Phone handset
    • Intel ships Cedar Trail Atoms
    • America's first 'WhiteFi' network goes live
    • Tiny module boots Windows Embedded Compact 7 in 800 milliseconds

      WfD showcase archives

      • Mobile Phones
      • PDAs and other handhelds
      • Netbooks
      • Windows tablets, UMPCs, and MIDs
      • Audio/video entertainment devices
      • Thin client terminals and devices
      • Voice over IP devices
      • SPOTlight on .NET Micro Framework (MF)
      • SPOT-light on Microsoft's "SPOT" Technology
      • Other smart devices

  • eWEEK Quick LInks
  • Home
  • Windows & Interoperability
  • Mobile & Wireless Technology
  • Application Development
  • Enterprise Applications
  • Enterprise Networking
  • Desktops & Notebooks
  • Technology Videos
  • ZDE Corporate Site
  • Linux for Devices
  • Microsoft Watch Blog
  • Migration Expert Zone
  • Smarter Technology
  • ASP Free
  • Scripts
  • Tutorialized
  • Technology Resource Library

Site Map

Use of this site is governed by our Terms of Use and Privacy Policy

Copyright ©1996-2010 Ziff Davis Enterprise Holdings Inc. All Rights Reserved. eWEEK and Spencer F. Katt are trademarks of Ziff Davis Enterprise Holdings, Inc.
Reproduction in whole or in part in any form or medium without express written permission of Ziff Davis Enterprise Inc. is prohibited.