|
【文件名】:08628@52RD_wince 应用程序开发第三版.chm
【格 式】:chm
【大 小】:1431K
【简 介】:
【目 录】:
Windows® CE 3.0 Application Programming
PREFACE
ACKNOWLEDGMENTS
1. Introduction
About Microsoft Windows CE
About This Book
About You
About MFC (Microsoft Foundation Classes) and ATL (ActiveX Template Libraries)
eMbedded Visual C11 3.0
The Code Samples
Unicode Text and Strings
Error Checking
Exception Handling and Page Faults
Conclusion
2. Files
Overview
Opening and Reading from a File
Getting and Setting File Information
Conclusion
3. Object Store, Directory, and Network Operations
Getting Object Store Free Space
Creating and Deleting Directories
Compact Flash and Other Storage Devices
WNet Functions
Adding and Canceling Connections
Conclusion
4. Property Databases and the Registry
Database Volumes
Flushing a Database Volume
Properties
Sort Orders
Creating a Property Database
Opening and Closing Property Databases
Deleting Property Databases
Writing Records
Reading Records
Using the CEVT_BLOB Property Data Type
Searching for Records
Deleting Properties and Records
Updating Database Records
Database Notifications
Listing Database Information
Changing Database Attributes
Using MFC Classes with Property Databases
Accessing the Registry
Conclusion
5. Processes and Threads
Creating a Process with CreateProcess
Process Kernel Object Handles and Identifiers
Creating a Process with ShellExecuteEx
Waiting for a Process to Terminate
Process Exit Code
Listing Running Processes
Modules Used by a Process
Terminating a Process
Determining If a Previous Instance of a Process Is Running
Threads
Creating a Thread
Terminating a Thread and Thread Exit Codes
Thread Scheduling
Thread Priorities
Enumerating Threads
Determine Thread Execution Times
Creating Threads with MFC
Conclusion
6. Thread Synchronization
The Need for Synchronization
Critical Sections
The Interlocked Functions
WaitForSingleObject and WaitForMultipleObjects
Using Mutex Objects
Using Event Objects
Using Semaphores
Selecting the Correct Synchronization Technique
Thread Local Storage and Dynamic Link Libraries
Conclusion
7. Notifications
Running an Application at a Specified Time
Using Mini-Applications with Notification
Starting an Application on an Event
Manually Controlling the LED
User Notification
CeSetUserNotificationEx
Conclusion
8. Communications Using TCP/IP: HTTP and Sockets
Overview of TCP/IP Communications
Programming the HTTP Protocol
Simple HTTP Requests
More Complex HTTP Requests Using a Session
Using a Proxy Server
Connecting to Secure Sites
Sending Data to a Server
HTTP in Summary
Socket Programming
Conclusion
9. Serial Communications
Basic Serial Communications
GPS and NMEA
Infrared and Other Devices
Conclusion
10. The Remote API (RAPI)
Initializing and Un-initializing RAPI
Handling Errors
A Simple RAPI Application—Creating a Process
Overview of RAPI Functions
Write Your Own RAPI Functions with CeRapiInvoke
Conclusion
11. Telephone API (TAPI) and Remote Access Services (RAS)
Introduction to Telephone API (TAPI)
Line Initialization and Shutdown
Enumerating TAPI Devices
Making a Call with TAPI
Communicating Through an Open Call
Remote Access Services (RAS)
Conclusion
12. Memory Management
The Virtual Address Space
Allocating Memory for Data Storage
Obtaining System Processor and Memory Information
Obtaining the Current Memory Status
Application Memory Allocation
Creating Your Own Heaps
Handling Low-Memory Situations
Conclusion
13. System Information and Power Management
Operating System Version Information
Power Management
Conclusion
14. COM and ActiveX
Introduction to the Component Object Model (COM)
POOM—The Pocket Office Object Model
Using COM Components
Using Smart Pointers
Creating a Recurring Appointment
ActiveX and Automation
Using Automation Objects with MFC
Conclusion
15. Microsoft Message Queue (MSMQ)
Overview of Microsoft Message Queue
Installation
Managing Queues on Windows 2000
Sending Messages from Windows CE
Creating a New Queue
Reading Messages from a Queue
Message Timeouts, Acknowledgements, and Administration Queues
Message Transactions
Conclusion
16. ADOCE and SQL Server for Windows CE
Installing SQL Server for Windows CE
ADOCE and ADOXCE
Using Smart Pointers with ADOCE
Using _bstr_t and _variant_t Classes
Creating a Catalog (Database)
Enumerating Tables in a Catalog
Dropping a Table
Adding Records to a Table
Retrieving Records from a Table
Connection Object
Deleting Records
SQL Data Definition Language (DDL)
INSERT Statement
Error Handling
Transactions
Conclusion
17. ActiveSync
ActiveSync Items, Folders, and Store
Steps to Implement Device Synchronization
Steps to Implement Desktop Synchronization
Additional Steps for Continuous Synchronization
The Sample Application
Installation and Registration
Data Organization
Important Note
Implementing the Windows CE Device Provider
Implementing the Desktop Provider
Conclusion |
|