36
What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group [email protected]

What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group [email protected]

Embed Size (px)

Citation preview

Page 1: What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group seanpuff@microsoft.com

What’s New in Visual Studio 2005 for Devices

Sean Puffett Developer & Platform [email protected]

Page 2: What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group seanpuff@microsoft.com

The slides for this eventwill be posted at:

www.microsoft.com/uk/msdn/postevents

Page 3: What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group seanpuff@microsoft.com

Agenda

Show me the ‘shiny’!

Visual Studio 2005 for Devices

.NET Compact Framework Where are we todayNew features in Version 2.0

Summary

Page 4: What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group seanpuff@microsoft.com

Pocket PC SmartphoneSmartphone Portable Media Portable Media CenterCenter

Windows Mobile Products

Data-centric device

Touch screen and stylus

Integrated QWERTY

Applications Platform

Phone-centric device

One handed navigation

Keypad and joystick

Applications Platform

Media-centric device

Optimized media UIbased on MCE

Music, pictures, recorded TV

Dedicated Platform

Page 5: What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group seanpuff@microsoft.com

Show me the ‘shiny’!

Sample fillcolor

Sample fillcolor

Sagem My-S7 Sierra Voq MDA III/XDA IIs Motorola MPX Symbol MC50 Garmin

HP Ipaq 63xxHTC TyphoonMPX 220T Mobile SDA

Page 6: What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group seanpuff@microsoft.com

VS2005 Device Initiatives

Page 7: What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group seanpuff@microsoft.com

VS2005 Device Initiatives

Extend the feature set, leveraging desktop features

Integrating Managed and Native development in same tool

Integrate with the Desktop code-base

Page 8: What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group seanpuff@microsoft.com

Leveraging Desktop Features

NativeATL and MFC Class Libs and WizardsV8.0 CompilersResource EditorProject Properties and Settings

ManagedDesigner WYSIWYG

Forms

User/Custom Controls

Data

Partial ClassesInherited Forms

BothVS Project System, MSI and CAB projects

Page 9: What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group seanpuff@microsoft.com

Native Development

Native C++ for Devices feature will include:Application and Class WizardsSDK integrationResource EditorRemote deployment/debuggingNative frameworks (MFC / ATL)EmulatorHelp

Page 10: What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group seanpuff@microsoft.com

My first My first Native AppNative App

Page 11: What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group seanpuff@microsoft.com

Managed DevelopmentLanguages: C#, VB .NETManaged/Native Projects in one solutionIntegrated Smartphone supportWYSIWYG Forms Designer

Catch inherited but unsupported properties, methods and eventsSupport for custom controls and inherited forms

More accurate IntelliSenseData Designer

SQL Mobile Data-Management ToolsNew EmulatorCAB and Setup ProjectsRemote Tools

Registry, process viewer, file viewer, heap walker, etc…

Page 12: What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group seanpuff@microsoft.com

Emulator Features

ARM CPU instruction set

ActiveSync support

Shared Folder support

Four COM ports

Portrait and landscape orientation support

Page 13: What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group seanpuff@microsoft.com

Data FeaturesTools for SQL Server and SQL Server CE

Database/Schema Creation

Table Editor

Data Connection

Data Source DatabaseBusiness ObjectWeb Service

Drag/Drop Data-bound controlsTablesFields

Master/Details Form

Parameterized Form

Data Form

Page 14: What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group seanpuff@microsoft.com

CAB Project Features

CAB DesignerFile System Editor

Project Output

Content

Shortcuts

Registry

Custom Actions

One CAB format for Pocket PC and Smartphone

Page 15: What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group seanpuff@microsoft.com

My first My first Managed AppManaged App

Page 16: What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group seanpuff@microsoft.com

Compact Framework 2.0

Page 17: What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group seanpuff@microsoft.com

.NET Compact Framework Today…

Service Pack 3 ImprovementsDownload it today from MSDNFocus on Stability: WM 2003 SEFrom SP 2:

~ 40% faster XML~ 20% faster ADO.NETForeColor and BackColor!!!

Developer AdoptionFourth most active .NET newsgroupDeveloper Focused Web sites like

http://www.OpenNetCF.orghttp://www.dotnetdn.com/http://www.pocketPCDN.com

http://msdn.microsoft.com/mobility/Information direct from product team members

http://blogs.msdn.com/windowsmobile

Page 18: What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group seanpuff@microsoft.com

Compatibility And Performance.NET Compact Framework 2.0

Compatibility with full .NET FrameworkClassesInteroperability, Protocols

Compatibility with 1.0Side by sideApplication compatibility

Performance EnhancementsUnified JITImproved string handlingXmlTextReader and XmlTextWriter

.NETCF 1.0.NETCF 1.0(ROM)(ROM)

.NETCF 1.0.NETCF 1.0(ROM)(ROM)

.NETCF .NETCF 2.02.0

.NETCF .NETCF 2.02.0

Page 19: What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group seanpuff@microsoft.com

Extensibility.NET Compact Framework 2.0

COM InteroperabilityRuntime Callable Wrappers (RCW) provide proxies for native COM objects

RCW support integrated into the Visual Studioshell

Enhanced Type MarshallingAdditional types – arrays, strings, structuresEmbedded arrays – structs with char[], array[]MarshalAs – type hinting

System.Windows.FormsControl.Handle – retrieve window handle

Page 20: What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group seanpuff@microsoft.com

Language Support.NET Compact Framework 2.0

New language features make youmore productive

GenericsAnonymous methodsIteratorsPartial Types

Page 21: What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group seanpuff@microsoft.com

Windows.Forms Controls

DateTimePicker

MonthCalendar

DocumentList

LinkLabel

Notification Bubble

Help

WebBrowser

DataContainer

UserControl

Page 22: What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group seanpuff@microsoft.com

Clipboard support

Additional properties, methods, events by customer request including

Control.DoubleClick

ToolBarButton tooltips

More Treeview events

And more!

More Keyboard Support

Form.KeyPreview

TabIndex, TabStop

More Windows.Forms Features

HPHP43004300

Integrated Integrated keyboardskeyboards

Page 23: What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group seanpuff@microsoft.com

Smartphone Features.NET Compact Framework 2.0

Data SupportSQL MobileDataGrid

Textbox IME switching

InputModeEditor

Enable multiple menu items on left softkey

Page 24: What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group seanpuff@microsoft.com

Future Device

Orientations

Resolutions

Displays And Layout

.NET Compact Framework 1.0 Service Pack 2 (&3)Automatically provides scrolling Form contents for non-portrait displays

Form.Resize event

Automatically provides pixel doubling for high resolution

White paper on MSDN:Developing Screen Orientation-Aware Applications

Developing Orientation and dpi Aware Applications for the .NET Compact Framework

Page 25: What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group seanpuff@microsoft.com

Displays And Layout.NET Compact Framework 2.0

Orientation SupportDocking and Anchoring

Tip – use panels to group controls

AutoScroll property – forms, panelsSuspend/Resume Layout methodsChangeOrientation method

Resolution SupportAutomatic scalingGraphics DpiX/DpiY

Page 26: What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group seanpuff@microsoft.com

System.Drawing.NET Compact Framework 2.0

BitmapsBitmap.LockBits(…)Image.Save(…)

png, jpg, bmp, tif, gif

Bitmap Pattern Brushes

Create font from LOGFONT structure

Custom Pens

Rotated text Rotated text using LOGFONT using LOGFONT

Page 27: What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group seanpuff@microsoft.com

Networking And Web ServicesSystem.MessagingWeb Services

Performance boost from faster XmlSerializer

Support for new standard: SOAP 1.2

Enhanced AuthenticationAdding Kerberos and NTLM

Automatically select most secure authentication method

IPv6

WebService service = new WebService();service.Credentials = new NetworkCredential(username, password, domain);

Page 28: What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group seanpuff@microsoft.com

System.Xml And System.Data

System.XmlSerialization

live objects like application settingsSchemas

Validate XML against schema constraintsGenerate schemas on the fly programmatically

XPath 1.0

DataPowerful tools integrated into Visual Studio 2005

Data Designer

SQL Mobile (“SSCE 3.0” or “Laguna”)SqlCeResultSet (Updateable scrollable cursor)Storage Engine - Multi-User and Multi-Connection support

ADO.NETAdding features to match full .NET Framework

Page 29: What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group seanpuff@microsoft.com

Class Libraries

Serial PortFour ports nowSupported in the emulator

Generic collections

CryptographyaZ#S- ghro @*rw --v<E[1~Encrypt System.Messaging messages, passwords

Page 30: What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group seanpuff@microsoft.com

Control.Invoke.NET Compact Framework 1.0

.NET System.Windows.Forms requires use of Control.Invoke to marshal a delegate from a user thread back to the GUI thread

Otherwise your user interface will stop responding. More on MSDNInvoking Method Parameters on a ThreadMultithreaded Windows Forms Control Example

1.0 supported type EventHandler delegate only

// on a thread you (the user) createdEventHandler x;x = new EventHandler(this.UpdateProgressBar);this.Invoke(x); // marshal back to GUI thread

void UpdateProgressBar(object o, EventArgs e);{ // this needs to execute on the GUI thread

this.progressBar1.Value++;}

Page 31: What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group seanpuff@microsoft.com

Support for custom delegatesReturn valuesCustom parameters

Asynchronous supportBeginInvoke/EndInvoke

Exception for cross-thread GUI callsunique to .NET Compact Framework

Control.Invoke.NET Compact Framework 2.0

IAsyncResult result = this.BeginInvoke(myDelegate,

new object[]{“hello”});// do other processing here while thread

runsint returnCode = (int)this.EndInvoke(result);

public delegate int myDelegate(string s);

Page 32: What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group seanpuff@microsoft.com

Summary

You can make great device applications today with Visual Studio .NET 2003

VS2005 introduces large improvements in device application design, unifying it with desktop experience

.NET Compact Framework 2.0 is about next generation features and productivity enhancers.

Page 33: What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group seanpuff@microsoft.com

Additional Information

Try Visual Studio 2005 Beta 2http://lab.msdn.microsoft.com/vs2005/get/

Mobile Developer Centerhttp://msdn.microsoft.com/mobility/

.Net Compact Framework v2.0 FAQhttp://msdn.microsoft.com/smartclient/community/cffaq/cf20.aspx

Page 34: What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group seanpuff@microsoft.com

Additional Information

Post Events SiteAll information on past events, slide decks etc

http://www.microsoft.com/uk/msdn/postevents

The UK MSDN Site & FlashLocal news, events, webcasts

http://www.microsoft.com/uk/msdnRegister to receive the bi-weekly MSDN Flash by email

http://www.microsoft.com/uk/msdn/flash.aspx

Take a look at the Express productshttp://msdn.microsoft.com/express

GotDotNet and ASP.NET – lots of excellent resources

http://www.gotdotnet.comhttp://www.asp.net

Page 35: What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group seanpuff@microsoft.com

Attend a free chat or web casthttp://www.microsoft.com/communities/chats/default.mspx http://www.microsoft.com/usa/webcasts/default.asp

List of newsgroupshttp://communities2.microsoft.com/communities/newsgroups/en-us/default.aspx

MS Community Siteshttp://www.microsoft.com/communities/default.mspx

Locate Local User Groupshttp://www.microsoft.com/communities/usergroups/default.mspx

Community siteshttp://www.microsoft.com/communities/related/default.mspx

Community Resources

Page 36: What’s New in Visual Studio 2005 for Devices Sean Puffett Developer & Platform Group seanpuff@microsoft.com

© 2005 Microsoft Corporation. All rights reserved.© 2005 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.