Embedded Visual Basic : Windows Ce and Pocket PC Mobil Applications

Embedded Visual Basic : Windows Ce and Pocket PC Mobil Applications

  • Sams(2001/11発売)
  • ただいまウェブストアではご注文を受け付けておりません。 ⇒古書を探す
  • 製本 Paperback:紙装版/ペーパーバック版/ページ数 403 p.
  • 言語 ENG,ENG
  • 商品コード 9780672322778
  • DDC分類 005

Full Description


This book is an in-depth exploration into eVB's inherent features, and how to use them to solve likely mobile application programming tasks. After reading the book the reader will be able to write applications tackling a wide array of business problems for Windows CE-powered devices, both customized and for PocketPC and Handheld PC products. This book will help ease the transition into the language, and provide a reference for even more experienced developers.

Table of Contents

Introduction                                       1  (1)
Who This Book is For 1 (4)
How This Book Is Organized 2 (1)
Conventions Used in This Book 3 (2)
An Introduction to Windows CE 5 (16)
CE Platforms 6 (1)
Palm-Size PC 7 (1)
Handheld PC (HPC) 7 (1)
Pocket PC 8 (3)
Processors 10 (1)
eMbedded Visual Basic 11 (3)
Installing eVB 11 (3)
Creating a New Project 14 (2)
Running and Debugging 16 (2)
Remote Tools 18 (2)
Zoom 18 (2)
Control Manager 20 (1)
Summary 20 (1)
Introducing eMbedded Visual Basic 21 (12)
Compiled Versus Interpreted Code 22 (1)
All Things Are variant 23 (1)
Unsupported VB6 Features 24 (6)
GoTo and Error Handling 24 (1)
New, CreateObject, and Events 25 (1)
No Class Support 26 (1)
No validate Events 26 (1)
Menus Are Different 27 (1)
Optional Isn't an Option 27 (1)
ActiveX Controls, DLLs, and EXEs 28 (1)
Control Arrays 28 (1)
User-Defined Data Types 29 (1)
With Blocks 29 (1)
Modal Forms 29 (1)
Using the Windows CE Emulators 30 (1)
Other Differences 30 (2)
Summary 32 (1)
Manipulating Files 33 (28)
The FileSystem and File Controls 35 (1)
The Controls' Object Models 35 (1)
The Windows CE TreeView Control 36 (1)
Creating the PocketExplorer Utility 37 (23)
Setting Up the Project 37 (3)
Getting Directory Contents 40 (3)
Displaying the Directory Tree 43 (4)
Getting a File's Attributes 47 (3)
Opening, Editing, and Writing Text Files 50 (10)
Summary 60 (1)
Working with Menu Controls for Pocket PC 61 (30)
Setting project References For MenuBar 62 (2)
Control
Creating Menu Bars 64 (12)
Responding to Menu Taps 65 (2)
Checkmark Menus 67 (4)
Dynamic Menus 71 (1)
Removing Menu Items 72 (2)
Changing Captions 74 (1)
Manipulating Enabled State 75 (1)
Implementing Menu Buttons 76 (11)
Populating the ImageList 76 (1)
Moving Files to a Development Environment 77 (3)
Responding to Button Taps 80 (3)
Using Button Groups 83 (3)
Using Caption Buttons 86 (1)
Adding the New Button 87 (2)
Summary 89 (2)
Using the Windows CE WinSock for IR 91 (46)
Communication
A Brief Socket Tutorial 92 (1)
Understanding the WinSock Control 93 (2)
Control's Object Model 94 (1)
Writing the PocketChat Application 95 (33)
Project Setup 96 (1)
Project Flow 97 (1)
Initializing Application 98 (2)
Adding the Application's MenuBar 100(2)
Changing the Connection Protocol 102(1)
Connecting to a Remote Device 103(4)
Accepting a Connection Request 107(1)
Receiving the Connection Notification 108(1)
Disconnecting 108(4)
Sending Chat Text 112(2)
Receiving Chat Text 114(2)
Sending a Text File 116(6)
A ProgressBar Workaround 122(2)
Receiving a Text File 124(1)
Handling WinSock Errors 125(2)
Adding Final Touches 127(1)
PCChat 128(6)
Summary 134(3)
The Pocket Outlook Object Model: Accessing 137(50)
Contacts and Calendar Items
Installing POOM 138(3)
Installation onto Your Device 139(1)
Installation on a Development Computer 140(1)
Looking at Pocket Outlook's Object Model 141(8)
The PocketOutlook.Application Object 141(1)
The PocketOutlook.Folder Object 142(1)
The PocketOutlook.Items Collection 143(4)
The PIM Objects: ContactItem, TaskItem, 147(2)
and Appointment Item
Creating the Pocket PIM Sample Application 149(37)
Other Technologies Demonstrated 151(1)
Building the Application 151(35)
Summary 186(1)
Storing and Retrieving Data with ActiveX Data 187(68)
Objects CE
Storing Windows CE Data 189(1)
Introducing ADOCE Objects 189(2)
The Connection Object 190(1)
The Recordset Object 190(1)
The Fields Collection 190(1)
The Field Object 190(1)
Creating the CD Library Sample Application 191(43)
Understanding Some Issues 191(3)
Understanding the Project Components 194(1)
Defining Data Structures for the 194(1)
Application
Setting Up the CD Library Project 195(1)
Setting Up modGlobal's Consts and Public 196(2)
Variables
Setting Up frmMain's Consts and Public 198(1)
Variables
Stubbing Out All frmMain Subs and 199(1)
Functions
Using the Form.Load Event 200(1)
Using the InitializeGlobals Function 201(1)
Using the openDatabase Function 202(1)
Using the EnsureDatabaseexists Function 203(2)
Using the CreateTables Function to Create 205(3)
Tables and Indexes, and to Insert Data
Using the CreateData Function 208(1)
Using the AddGenre Function 209(5)
Using the GetNewPK Function to Control 214(1)
Primary Keys
Give It a Whirl 215(1)
Using the AddArtist Function 216(2)
Using the AddCD Function 218(2)
Updating the CreateData Function to Add 220(3)
Artists and CDs
Another Trip Around the Block 223(1)
Using the InitializeGridVariables Function 223(2)
Using the PopulateArtistGrid Function to 225(3)
See the Data
Once More Around the Block: Let's See 228(1)
Those Artists
What Artists? Which CDs? 228(1)
Using the RefreshCDGrid Function: 228(5)
Finally, Those CDs!
Are We There Yet? 233(1)
Tapping the CD Grid 233(1)
Implementing the CD Form 234(20)
Designing the CD Form 234(1)
Setting Up frmCD 235(1)
Implementing CDOpen: The Entry Point to 235(4)
frmCD
Implementing the RefreshFormCD Function 239(2)
Implementing the PopulateArtistCombo 241(1)
Function
Implementing the PopulateGenreCombo 242(1)
Function
Viewing the CD 243(1)
Implementing the New Button on the Main 243(1)
Form
Implementing a New CD in the CD Form 244(1)
Go Ahead, Make My CD 245(1)
Implementing the SaveCD Function 245(9)
Summary 254(1)
Using SQL Server in a Mobile Environment 255(64)
Installing and Configuring SQL Server CE on 256(2)
Your Server
Installing and Configuring SQL Server CE on 258(1)
Your Device or Emulator
Establishing Connectivity for SQL Server CE 259(1)
Understanding the SQL Server CE Object Model 259(1)
Using SQL Server CE Data 259(5)
Updating SQL Server CE Recordsets 260(2)
SQL Server CE Merge Replication and 262(1)
Remote Data Access
SQL Server CE Merge Replication 262(1)
SQL Server CE Remote Data Access 263(1)
Using Replication with SQL Server CE 264(53)
Creating the CD Library Database on the 264(4)
Server
Creating a Publication for Replication to 268(10)
a Windows CE Device
Investigating the SQL Server CE 278(5)
Replication Object
Converting the CD Library Application to 283(34)
Use SQL Server CE Replication
Summary 317(2)
Harnessing the Windows CE API 319(44)
The Application Programming Interface 321(1)
The API Text Viewer 322(2)
Non-UDT API Examples 324(20)
BringWindowToTop 324(1)
CompareString 324(2)
CopyFile 326(1)
CreateProcess 327(1)
Creating Your Own DoEvents 328(1)
Shutting Down the Device 329(1)
GetActiveWindow 329(1)
GetAsyncKeyState 330(1)
GetTickCount 330(2)
PlaySound 332(1)
RegQueryValueEx and RegSetValueEx 332(6)
Sleep 338(1)
Putting It All Together 338(6)
User-Defined Data Type Workaround 344(7)
User-Defined Data Types 344(2)
Strings 346(1)
Getting a Byte Value 346(2)
Building a Binary String 348(2)
Converting from a Binary String 350(1)
UDT API Examples 351(4)
SetLocalTime 352(1)
GetLocalTime 353(2)
Transferring Data to and from a PC 355(6)
DeskToptoDevice 356(4)
DevicetoDesktop 360(1)
Summary 361(2)
A Control Reference 363(28)
Pocket PC MenuBar Control Reference 364(6)
ADOCE Control Reference 370(8)
The File Control Object Model 378(1)
The FileSystem Control Object Model 379(1)
MSCEFiIeCtl Constants 380(2)
The CE Treeview Object Model 382(5)
The CE WinSock Object Model 387(4)
Index 391