developing windows ® ce applications with visual basic ® larry roof tonked 8-305

27
Developing Windows Developing Windows ® ® CE CE Applications With Applications With Visual Basic Visual Basic ® ® Larry Roof Larry Roof tonked tonked 8-305 8-305

Upload: shemar-deakin

Post on 31-Mar-2015

220 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Developing Windows ® CE Applications With Visual Basic ® Larry Roof tonked 8-305

Developing WindowsDeveloping Windows®® CE CE Applications With Applications With Visual BasicVisual Basic®®

Larry RoofLarry Rooftonkedtonked

8-3058-305

Page 2: Developing Windows ® CE Applications With Visual Basic ® Larry Roof tonked 8-305
Page 3: Developing Windows ® CE Applications With Visual Basic ® Larry Roof tonked 8-305

AgendaAgenda

Windows CE overviewWindows CE overview Introduction to the eVB toolkitIntroduction to the eVB toolkit Developing applications with eVBDeveloping applications with eVB Questions and answersQuestions and answers

Page 4: Developing Windows ® CE Applications With Visual Basic ® Larry Roof tonked 8-305

Windows CE PlatformsWindows CE Platforms

Commercial devicesCommercial devices H/PC Pro (sub-notebook)H/PC Pro (sub-notebook) H/PC (checkbook)H/PC (checkbook) P/PCP/PC Pocket PCPocket PC

Auto PCAuto PC Embedded devicesEmbedded devices

Page 5: Developing Windows ® CE Applications With Visual Basic ® Larry Roof tonked 8-305

Windows CE EnvironmentWindows CE Environment

Limited memoryLimited memory Limited CPU powerLimited CPU power Supports a subset of Win32Supports a subset of Win32®® APIs APIs Provides desktop connectivityProvides desktop connectivity

Page 6: Developing Windows ® CE Applications With Visual Basic ® Larry Roof tonked 8-305

Embedded Visual BasicEmbedded Visual Basic

Application developmentApplication development Runtime characteristicsRuntime characteristics Intrinsic controlsIntrinsic controls ActiveXActiveX®® Controls Controls Runtime availabilityRuntime availability Application modelApplication model Deploying applicationsDeploying applications

Page 7: Developing Windows ® CE Applications With Visual Basic ® Larry Roof tonked 8-305

Development With eVBDevelopment With eVB

Visual Basic-like development Visual Basic-like development environmentenvironment

New project typesNew project types Project dialogProject dialog

Auto-download and runAuto-download and run Remote debuggingRemote debugging EmulationEmulation

Remote developer toolsRemote developer tools

Page 8: Developing Windows ® CE Applications With Visual Basic ® Larry Roof tonked 8-305

Demo – Hello WorldDemo – Hello World

Page 9: Developing Windows ® CE Applications With Visual Basic ® Larry Roof tonked 8-305

Runtime CharacteristicsRuntime Characteristics

Subset of Visual Basic 6.0 runtimeSubset of Visual Basic 6.0 runtime Designed for size, speedDesigned for size, speed About 650K in sizeAbout 650K in size

Language subsetLanguage subset Object subsetObject subset Interpreted on DeviceInterpreted on Device Application is CPU independentApplication is CPU independent No native compile … yetNo native compile … yet

Page 10: Developing Windows ® CE Applications With Visual Basic ® Larry Roof tonked 8-305

Intrinsic ControlsIntrinsic Controls Picture boxPicture box LabelLabel Text boxText box FrameFrame Command buttonCommand button Check boxCheck box Option buttonOption button Combo boxCombo box List boxList box Scroll barsScroll bars TimerTimer ShapeShape LineLine

Page 11: Developing Windows ® CE Applications With Visual Basic ® Larry Roof tonked 8-305

ActiveX Controls With eVB ActiveX Controls With eVB

Controls shipped with eVBControls shipped with eVB Image, PictureBox, ImageListImage, PictureBox, ImageList FileSysFileSys Winsock, MSCommWinsock, MSComm TreeView, ListViewTreeView, ListView Grid, Common Dialog, TabStripGrid, Common Dialog, TabStrip Menu bar, Command barMenu bar, Command bar ADOCEADOCE

Page 12: Developing Windows ® CE Applications With Visual Basic ® Larry Roof tonked 8-305

Third-Party ControlsThird-Party Controls

PrintingPrinting Displaying imagesDisplaying images InternetInternet API wrappersAPI wrappers

Page 13: Developing Windows ® CE Applications With Visual Basic ® Larry Roof tonked 8-305

Demo – NextGen AgentDemo – NextGen Agent

Page 14: Developing Windows ® CE Applications With Visual Basic ® Larry Roof tonked 8-305

Runtime AvailabilityRuntime Availability

Windows CE 2.0Windows CE 2.0 H/PC devicesH/PC devices

Windows CE 2.11Windows CE 2.11 H/PC Pro devicesH/PC Pro devices P/PC devicesP/PC devices

Windows CE 3.0Windows CE 3.0 Pocket PCPocket PC

Page 15: Developing Windows ® CE Applications With Visual Basic ® Larry Roof tonked 8-305

Distribution ModelDistribution Model

ROM – OEM decides if includedROM – OEM decides if included RAM – provided by supported SDKsRAM – provided by supported SDKs

Page 16: Developing Windows ® CE Applications With Visual Basic ® Larry Roof tonked 8-305

Application ModelApplication Model

OEM/Driver OEM/Driver DevelopmentDevelopment

ConfigurableConfigurableOS LayerOS LayerTCP/IPTCP/IP

PPPPPPUSERUSERGDIGDI

ObjectObjectStoresStoresKernelKernelIrDAIrDA

Installable driversInstallable drivers

Win32 API subsetWin32 API subset

OEM Adaptation LayerOEM Adaptation Layer

VB ApplicationsVB Applications

VBVBRuntimeRuntime

ActiveXActiveXControlsControls

ProcessorProcessor IndependentIndependent

ProcessorProcessor DependentDependent

Page 17: Developing Windows ® CE Applications With Visual Basic ® Larry Roof tonked 8-305

Deploying Your ApplicationDeploying Your Application

eVB applications are processor eVB applications are processor independentindependent

Intrinsic controls are in platform-Intrinsic controls are in platform-specific runtimespecific runtime

Application install wizard Application install wizard creates setupscreates setups

Third-party installation utilitiesThird-party installation utilities

Page 18: Developing Windows ® CE Applications With Visual Basic ® Larry Roof tonked 8-305

Developing An ApplicationDeveloping An Application

Designing for the Pocket PCDesigning for the Pocket PC Working with filesWorking with files Accessing Pocket OutlookAccessing Pocket Outlook®®

Databases and eVBDatabases and eVB Moving data to and from a deviceMoving data to and from a device Producing printed outputProducing printed output

Page 19: Developing Windows ® CE Applications With Visual Basic ® Larry Roof tonked 8-305

Demo – Mobile SalesDemo – Mobile Sales

Page 20: Developing Windows ® CE Applications With Visual Basic ® Larry Roof tonked 8-305

Designing For The Pocket PCDesigning For The Pocket PC

Flat interfaceFlat interface Menu bar controlMenu bar control Simple interactionSimple interaction Popup menusPopup menus OK buttonsOK buttons Minimize data inputMinimize data input

Page 21: Developing Windows ® CE Applications With Visual Basic ® Larry Roof tonked 8-305

Working With FilesWorking With Files

Working with the Windows CE Working with the Windows CE file systemfile system

File system controlFile system control Sequential, binary and Sequential, binary and

random access filesrandom access files File controlFile control

Page 22: Developing Windows ® CE Applications With Visual Basic ® Larry Roof tonked 8-305

Accessing Pocket OutlookAccessing Pocket Outlook

Pocket Outlook Object Model (POOM)Pocket Outlook Object Model (POOM) Working with contactsWorking with contacts Working with appointmentsWorking with appointments Working with tasksWorking with tasks

Page 23: Developing Windows ® CE Applications With Visual Basic ® Larry Roof tonked 8-305

Databases And eVBDatabases And eVB

Windows CE databasesWindows CE databases ADOCEADOCE SQL ServerSQL Server™™ 2000 for Windows CE 2000 for Windows CE Using ADO with eVBUsing ADO with eVB

Page 24: Developing Windows ® CE Applications With Visual Basic ® Larry Roof tonked 8-305

Moving Data To A DeviceMoving Data To A Device

ActiveSyncActiveSync®®

Using the synchronized files folderUsing the synchronized files folder RAPI with the CEConnect controlRAPI with the CEConnect control TCP/IP and the Winsock controlTCP/IP and the Winsock control

Page 25: Developing Windows ® CE Applications With Visual Basic ® Larry Roof tonked 8-305

Producing Printed OutputProducing Printed Output

Using IR printersUsing IR printers ActiveX printer controlActiveX printer control Printing using the printer controlPrinting using the printer control Creating HTML reportsCreating HTML reports

Page 26: Developing Windows ® CE Applications With Visual Basic ® Larry Roof tonked 8-305

Questions And AnswersQuestions And Answers

To contact me: Larry Roof – To contact me: Larry Roof – [email protected]@tonked.com

eVB information: eVB information: www.tonked.comwww.tonked.com Newsgroup: microsoft.public.vb.vbceNewsgroup: microsoft.public.vb.vbce eVB training: eVB training:

www.tonked.com/training.aspwww.tonked.com/training.asp Show samples: Show samples: www.tonked.comwww.tonked.com

Page 27: Developing Windows ® CE Applications With Visual Basic ® Larry Roof tonked 8-305