Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduzione allo sviluppo con.NET Compact Framework Roberto Brunetti Marco.

Similar presentations


Presentation on theme: "Introduzione allo sviluppo con.NET Compact Framework Roberto Brunetti Marco."— Presentation transcript:

1

2 Introduzione allo sviluppo con.NET Compact Framework Roberto Brunetti Marco Frontini Fabio Santini

3 Mobile &.NET Compact Framework …in questa sessione…

4 … il MOBILE … Luigi 16

5 … il MOBILE … Arte Contemporanea

6 Microsoft Mobility Platform Increased Functionality Notebook PC Complex document authoring, editing and readingComplex document authoring, editing and reading Keyboard centric at the deskKeyboard centric at the desk Keyboard and mouse input methodsKeyboard and mouse input methods Full.NET framework availableFull.NET framework available Windows CE+ Windows XP Tablet PC Complex document authoring, editing and active readingComplex document authoring, editing and active reading Note taking and ink annotatingNote taking and ink annotating Keyboard centric at the desk, pen & keyboard away from the deskKeyboard centric at the desk, pen & keyboard away from the desk Keyboard, mouse plus pen, ink, and speech input methodsKeyboard, mouse plus pen, ink, and speech input methods Full.NET framework preinstalledFull.NET framework preinstalled Pen, ink, handwriting and speech recognition API’sPen, ink, handwriting and speech recognition API’s Pocket PC Phone Integrated PDA with phoneIntegrated PDA with phone View and some data entryView and some data entry Interoperability with Office, Exchange and SQL ServerInteroperability with Office, Exchange and SQL Server.NET compact framework.NET compact framework Smartphone Smartphone Integrated phone with PDAIntegrated phone with PDA Data viewingData viewing Interoperability with ExchangeInteroperability with Exchange.NET compact framework.NET compact framework Smart Personal Objects One-way networkOne-way network Information consumptionInformation consumption

7 Panoramica su Windows CE Win CE, Pocket PC, Windows Mobile, Cosa sono? Windows CE un OS ModulareWindows CE un OS Modulare Windows CE 3.0 (CF supportato solo su Pocket PC )Windows CE 3.0 (CF supportato solo su Pocket PC ) Handheld PC 2000 (CF non è supportato )Handheld PC 2000 (CF non è supportato ) Windows CE.NET 4.2Windows CE.NET 4.2 Windows for Pocket PC ( basato su Windows CE 3.0 )Windows for Pocket PC ( basato su Windows CE 3.0 ) Windows Mobile 2003 ( basato su CE.NET 4.2 )Windows Mobile 2003 ( basato su CE.NET 4.2 ) Windows Mobile 2003 SE ( basato su CE.NET 4.21 )Windows Mobile 2003 SE ( basato su CE.NET 4.21 )

8 Roadmap Pocket PC Smartphone PPC 2002 SP 2002 WM 2003 WM 2003 SE WM 2005 Visual Studio Visual Studio 2003 Visual Studio 2005 Windows CE NET Compact Framework Size Size Portability Portability Compatibility Compatibility (redist) 1.0 SP1 Smartphone Smartphone 1.0 SP2 Perf update Perf update Landscape Landscape Autoscroll Autoscroll Bug fixes Bug fixes 2.0 Generics Generics COM interop COM interop Controls Controls MD3DM MD3DM Performance Performance (redist) 1.0 SP3 Bug fixes Bug fixes

9 Architettura

10 Architettura SW

11 Features delle varie versioni Windows CE (la base) una shell stile windows…non sempre utilizzabileWindows CE (la base) una shell stile windows…non sempre utilizzabile Pocket PC una shell specificaPocket PC una shell specifica Pocket PC Phone EditionPocket PC Phone Edition SmartphoneSmartphone

12 Hardware Processori: ARM, StrongARM, MIPS, Intel PXA, SH3, ecc.Processori: ARM, StrongARM, MIPS, Intel PXA, SH3, ecc. Comunicazione: IrDA, Bluetooth, USB, SerialeComunicazione: IrDA, Bluetooth, USB, Seriale Memoria: RAM-ROM, SD, CF ( esecuzione diretta dalla ROM )Memoria: RAM-ROM, SD, CF ( esecuzione diretta dalla ROM )

13 Visual Studio 2003 Tipologie di progetto PocketPC, CE.NET e Smartphone: Differenze Applicazioni console, in PocketPC e SP non sono supportate (occorre caricare manualmente la console.dll)PocketPC, CE.NET e Smartphone: Differenze Applicazioni console, in PocketPC e SP non sono supportate (occorre caricare manualmente la console.dll) Si possono creare applicazioni senza UI Diverso posizionamento e gestione dei controlli Attenzione al ClientRectangle con CE MenuMenu Toolbar ( no Smartphone )Toolbar ( no Smartphone ) Tab Control ( su Smartphone ListView+Forms )Tab Control ( su Smartphone ListView+Forms ) ListView, TreeView ( Smartphone )ListView, TreeView ( Smartphone )

14 Visual Studio 2003 Architettura di un progetto Piattaforme supportatePiattaforme supportate  Project Properties Output File Folder Deployment Device  Device Options

15 DEMO #1 Progetti PocketPC, CE.NET, Smartphone

16 Strumenti Compact Framework SDK C:\Programmi\Microsoft Visual Studio.NET 2003\CompactFrameworkSDKCompact Framework SDK C:\Programmi\Microsoft Visual Studio.NET 2003\CompactFrameworkSDK C:\Programmi\Microsoft Visual Studio.NET 2003\CompactFrameworkSDK C:\Programmi\Microsoft Visual Studio.NET 2003\CompactFrameworkSDK SDKs Pocket PC 2003 SDK + Emulators 2003 SE Smartphone 2003 SDK + Emulators 2003 SESDKs Pocket PC 2003 SDK + Emulators 2003 SE Smartphone 2003 SDK + Emulators 2003 SE Tools Power Toys C:\Programmi\Windows Mobile Developer Power Toys Remote Tools C:\Programmi\Windows CE Tools\Common\Platman\bin Windows CE Utilities ( debug su custom CE devices )Tools Power Toys C:\Programmi\Windows Mobile Developer Power Toys Remote Tools C:\Programmi\Windows CE Tools\Common\Platman\bin Windows CE Utilities ( debug su custom CE devices ) C:\Programmi\Windows Mobile Developer Power Toys C:\Programmi\Windows CE Tools\Common\Platman\bin C:\Programmi\Windows Mobile Developer Power Toys C:\Programmi\Windows CE Tools\Common\Platman\bin

17 C:\Programmi\Microsoft Visual Studio.NET 2003\CompactFrameworkSDK C:\Programmi\Windows CE Tools C:\Programmi\Windows Mobile Developer Power Toys C:\Programmi\Windows CE Tools\Common\Platman\bin DEMO #2 Tools

18 Differenze con la versione Full.NET CF è un sottoinsieme della versione Full Differenze Tipi ( molte classi sono state omesse )Tipi ( molte classi sono state omesse ) Method Overloads ( molti Overloads sono stati tralasciati )Method Overloads ( molti Overloads sono stati tralasciati ) Web Services ( solo client )Web Services ( solo client ) NGen (manca)NGen (manca) Namespaces mancanti Classi legate alla stampa ( Crystal, PrintDialog, etc. )Classi legate alla stampa ( Crystal, PrintDialog, etc. ) System.Xml.XPath namespace ed Extensible Stylesheet Language Transformation (XSLT)System.Xml.XPath namespace ed Extensible Stylesheet Language Transformation (XSLT) Binary SerializationBinary Serialization Microsoft.Win32.Registry namespaceMicrosoft.Win32.Registry namespace COM InteropCOM Interop GDI+GDI+ RemotingRemotingLinguaggi per ora solo C# e VB.NETper ora solo C# e VB.NET Il codice è sempre IL compilato a runtime con il JIT, esiste la GAC

19 Namespaces e tipi specifici del CF System.Net.IrDA namespaceSystem.Net.IrDA namespace System.Data.SqlServerCeSystem.Data.SqlServerCe System.SRSystem.SR Microsoft.WindowsCE.Forms.dllMicrosoft.WindowsCE.Forms.dll Input PanelInput Panel Bluetooth purtroppo assenteBluetooth purtroppo assente Class Library Comparison Tool ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/dv_spchk/html/NET_Compact_Framework.htmClass Library Comparison Tool ms-help://MS.VSCC.2003/MS.MSDNQTR.2003FEB.1033/dv_spchk/html/NET_Compact_Framework.htmClass Library Comparison ToolClass Library Comparison Tool

20 Windows Forms.NET Compact Framework 1.x Controlli supportati e nonControlli supportati e non TabIndex, TabStopTabIndex, TabStop Gestione dell’Input PanelGestione dell’Input Panel Activation e Deactivation ( Pocket PC )Activation e Deactivation ( Pocket PC ) Common dialogs OpenFileDialog, SaveFileDialog: solo un livello sotto My Documents ColorDialog, FontDialog: non sono supportate Smartphone: non sono supportateCommon dialogs OpenFileDialog, SaveFileDialog: solo un livello sotto My Documents ColorDialog, FontDialog: non sono supportate Smartphone: non sono supportate Custom ControlsCustom Controls Data BindingData Binding

21 DEMO #3 Win Forms, TabIndex, InputPanel, Activation-Deactivation

22 Accesso ai dati Locale con XMLLocale con XML Files, Streams File, FileInfo, Directory, DirectoryInfo BinaryReader/Writer, StreamReader/Writer, FileStream, NetworkStream, MemoryStream, StringReader/WriterFiles, Streams File, FileInfo, Directory, DirectoryInfo BinaryReader/Writer, StreamReader/Writer, FileStream, NetworkStream, MemoryStream, StringReader/Writer Encodings, System.Text.EncodingEncodings, System.Text.Encoding Remoto con WebRequest ( HttpWebRequest )Remoto con WebRequest ( HttpWebRequest ) Remoto con Web ServicesRemoto con Web Services Locale con SQL CELocale con SQL CE Remoto con SQL Server 2000Remoto con SQL Server 2000 RDARDA

23 DEMO #4 Lettura files e DataBinding

24 Configurazione ambiente di sviluppo e Debug Emulatore, configurazione per accesso alla rete e al webEmulatore, configurazione per accesso alla rete e al web Loopback adapterLoopback adapter Debug e Trace, limiti con CFDebug e Trace, limiti con CF ActiveSync 3.5 fino a CE 4.1, 3.7 fino a CE 4.2, 4.0 per CE 5.0ActiveSync 3.5 fino a CE 4.1, 3.7 fino a CE 4.2, 4.0 per CE 5.0

25 DEMO #5 Configurazione ambiente di sviluppo

26 © 2004 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY. Content created by 3 Leaf Solutions


Download ppt "Introduzione allo sviluppo con.NET Compact Framework Roberto Brunetti Marco."

Similar presentations


Ads by Google