Presentation is loading. Please wait.

Presentation is loading. Please wait.

.Net Compact Framework A Mostly Straight Path, but with Some Interesting Curves Richard Kucia Kucia Associates 2003.09.09.

Similar presentations


Presentation on theme: ".Net Compact Framework A Mostly Straight Path, but with Some Interesting Curves Richard Kucia Kucia Associates 2003.09.09."— Presentation transcript:

1 .Net Compact Framework A Mostly Straight Path, but with Some Interesting Curves Richard Kucia Kucia Associates 440-892-3838rjkucia@att.net 2003.09.09

2 Agenda What is the.Net Compact Framework? Developing in a Compact World Inclusions and Exclusions Examples

3 What is the.Net CF? Target: Mobile Devices The Same Framework – but optimized Integrated into VS.Net 2003 Formerly: Smart Device Extensions

4 .NET CF Design Goals Portable and small.NET CLR for devices –Enable Visual Basic® and C# Leverage Visual Studio®.NET –Run managed.EXEs and.DLLs directly –Debug with Visual Studio.NET Enable rich client Web Services and line of business applications on devices –Class libs for forms, drawing, storage, net, data access, XML Peacefully co-exist with host OS –Run on native threads, P/Invoke to call native code

5 Target: Mobile Devices Compaq, HP, Dell, Toshiba, … PocketPC 2000, 2002 Windows Mobile (aka PPC 2003) –.Net CF in ROM! Windows CE SmartPhone No Palm/Handspring

6 Target: Mobile Devices Developer Productivity Implications TechnicalBusiness Familiar dev experience… same tools and process Different approach to application design, but core development skills transfer Technical benefits of platform and tools yield productivity boost Desktop training on.NET is fully applicable to smart devices Desktop developers can now target devices with low incremental cost.NET developer productivity gains apply to smart devices as they do to the desktop and server

7 The Framework – Optimized 20mb 1.5mb True subset – no breaking changes Same languages, same code, same MSIL Multiple target CPUs

8 How Rich is the Working Environment? CLRJIT Garbage Collection Type safety; exceptions Threading Windows OS (PInvoke) SQL Server CE including replication ActiveSync Remote Viewer Web Services Sockets/StreamsADO.NetGraphics

9 .NET Framework System System.DataSystem.Xml System.Web Globalization Text Security Collections Resources Reflection Net IO Threading Diagnostics ServiceProcess Configuration Design ADO.NETSqlClient Xslt/XPath XmlDocument Runtime InteropServices Remoting Serialization Serialization ConfigurationSessionState CachingSecurity Services Description Discovery Protocols UI HtmlControls WebControls System.Drawing Imaging Drawing2D Text Printing System.WinForms DesignComponentModel Reader/Writers

10 .NET Compact Framework System System.DataSystem.Xml System.Web Globalization Text Security Collections Resources Reflection Net IO Threading Diagnostics ServiceProcess Configuration Design ADO.NET SqlServerCe SqlClient Xslt/XPath XmlDocument Runtime InteropServices Remoting Serialization Serialization ConfigurationSessionState CachingSecurity Services Description Discovery Protocols UI HtmlControls WebControls System.Drawing Imaging Drawing2D Text Printing System.WinForms DesignComponentModel Reader/Writers

11 Agenda What is the.Net Compact Framework? Developing in a Compact World Inclusions and Exclusions Examples

12 Developing in a Compact World VS.Net 2003 installation option C#, VB.Net True on-device debugging –If you can get it connected… EmulatorDeployment

13 Developing in a Compact World VS.NET Integration Templates for devices in New Project dialog –Template sets device and project type Template types –Pocket PC Application –Pocket PC Class Library –Pocket PC Control Library –Windows CE.NET Application –Mobile Phone Application Default set of references that are appropriate for your platform

14 Developing in a Compact World Overview of Controls Use Windows Forms Designer Drag-and-drop, property-based Rich subset of desktop controls –User Interface controls Data Entry Display –Formatting & RAD controls Organizational controls Helper controls

15 Data Entry Check Box Combo Box Command Button Domain Up/Down List Box Numeric Up/Down Radio Button Text Box Track Bar DisplayLabel Picture Box Progress Bar Status Bar Helper Context Menu Scroll Bars Image List Main Menu Open & Save File Dialogs Timer Tool Bar Organizational List View Panel Tab Control Tree View Developing in a Compact World Subset of Desktop Controls Controls Not Supported Checked List Box Data Grid DateTime Picker Group Box Month Calendar Splitter

16 Developing in a Compact World Customizing Emulator Settings Fully Functional PocketPC 2002 OS Emulator Options to change device configurations and connectivity –Resolution & Color Depth –Memory –COM & LPT ports!

17 Developing in a Compact World Deployment Same user experience as desktop Compiles application for device Output Window used for deployment messages Visual Studio deploys the framework to device if needed

18 Packaging and Deployment Windows + Visual Studio.NET Source Code (Hello.*).NETCompiler.NET CF Class Libs Hello.exe Hello.dll(s) Hello.cabCabWiz.exe Hello.cab Device ActiveSync, SMS, Etc/. Hello.exe Hello.dll(s) WCELoad.exe.NET CF.cab Per-Processor/OS and Language/Region.NET CF.cab.NET CF CLR

19 More Deployment Options Windows + Visual Studio.NET Device Hello.cab.NET CF.cab Desktop Executables Windows Setup.exe Setup.exe ActiveSync, Add/Remove Programs, Etc. Hello.cab Desktop Executables +.NET CF.cab Hello.cab Hello.exe Hello.dll(s).NET CF.cab.NET CF CLR

20 Agenda What is the.Net Compact Framework? Developing in a Compact World Inclusions and Exclusions Examples

21 .NET Compact Framework Whats Different? Specific performance issues –XML –Form loading –SQL Server CE Emphasis on File Size Emphasis on Memory Footprint

22 .NET Compact Framework Whats Different? Controls unimplemented Control properties removed Control properties unimplemented Method overloads removed No Console or Debug objects No Serial Port support

23 .NET Compact Framework Whats Different? Form-factor and GUI guideline issues No MDI applications No ActiveX controls in forms Applications that dont really close Open/Save dialog for \My Documents No file system (C:/?).resx file format

24 .NET Compact Framework Whats Different? Cant deploy to subdirectories No Merge modules My Company.cab files No pre-compiling (NGen)

25 .NET Compact Framework Whats Different? No designer for custom controls No support for Pocket Access No support for Pocket Office Expensive licensing for SQL Server CE

26 .NET Compact Framework Whats Different? Debugging: remarkable yet frustrating Single-in, step-thru CommandWatchBreakpoint No Console or Debug objects No set next instruction to execute

27 .NET Compact Framework Whats Different? Reflection Emit RemotingSerialization Code Dom Printing COM Interoperability Server side functionality XPath/XSLT

28 Agenda What is the.Net Compact Framework? Developing in a Compact World Inclusions and Exclusions Examples

29 For More Information… MSDN Web site at –msdn.microsoft.com

30 How-To Resources Simple, Step-By-Step Procedures Embedded Development How-To Resources General How-To Resources integration How-To Resources JScript.NET How-To Resources.NET Development How-To Resources office Development Resources Security How-To Resources Visual Basic ®.NET How-To Resources Visual C# ®.NET How-To Resources Visual Studio ®.NET How-To Resources Web Development How-To Resources (ASP, IIS, XML) Web Services How-To Resources Windows Development How-To Resources http://msdn.microsoft.com/howto

31 MSDN Webcasts Interactive, Live Online Event Interactive, Synchronous, Live Online Event Discuss the Hottest Topics from Microsoft Open and Free For The General Public Takes Place Every Tuesdays http://www.microsoft.com/usa/webcasts

32 MS Press Essential Resources for Developers Microsoft® Visual Studio®.NET is here! This is your chance to start building the next big thing. Develop your.NET skills, increase your productivity with.NET Books from Microsoft Press® www.microsoft.com/mspress

33 Training Training Resources for Developers Course Title: Developing Smart Device Applications with the.NET Compact Framework –Course Number: 2556 –Availability: 9/2002 –Detailed Syllabus: www.microsoft.com/traincert www.microsoft.com/traincert To locate a training provider for this course, please access www.microsoft.com/traincert Microsoft Certified Technical Education Centers are Microsofts premier partners for training services

34 Specifications TRS Series Rotary with Planetary Gear TLS Series Linear

35


Download ppt ".Net Compact Framework A Mostly Straight Path, but with Some Interesting Curves Richard Kucia Kucia Associates 2003.09.09."

Similar presentations


Ads by Google