.Net Compact Framework Programming With C# (Paperback)
暫譯: 使用 C# 的 .Net Compact Framework 程式設計 (平裝本)

Paul Yao, David Durant

  • 出版商: Addison Wesley
  • 出版日期: 2004-06-03
  • 售價: $2,730
  • 貴賓價: 9.5$2,594
  • 語言: 英文
  • 頁數: 1424
  • 裝訂: Paperback
  • ISBN: 0321174038
  • ISBN-13: 9780321174031
  • 相關分類: .NETC#
  • 已過版

買這商品的人也買了...

商品描述

This book explores the differences between the standard framework and the CF, shows how to use the Win32 API, and explains specialized tools for particular machines and functions. It is a practical, code-rich tutorial for experienced students wishing to transfer their skills to smart devices. Covers topics not found in other books, such as controls, data handling, graphics, and ActiveSync

Table of Contents:

Foreword.

Preface.

Acknowledgments.

About the Authors.

I. FOUNDATIONS.

1. .NET Compact Framework Architecture.

Windows CE Overview.

What Is .NET?

The .NET Compact Framework.

Conclusion.

2. What Is a .NET Compact Framework Program?

The Essence of a .NET Compact Framework Program.

Using Visual Studio .NET 2003.

The Cistern Sample Program.

Adding Classes.

Conclusion.

3. The .NET Type System.

Using Type Information: Namespace References and Assembly References.

Standard Types.

Strings.

Type Conversion.

Memory Management.

Conclusion.

4. Platform Invoke.

Overview of P/Invoke.

Creating P/Invoke Declarations.

Supported P/Invoke Function Parameters.

A Sample Program: CallWin32.

Writing Win32 Dynamic Link Libraries.

Manual P/Invoke Parameter Passing.

Communicating between Unmanaged and Managed Code.

Comparing P/Invoke Support.

Conclusion.

II. BUILDING THE USER INTERFACE.

5. Creating Forms.

What Are Forms?

Manipulating Forms.

Inheritance and Visual Inheritance.

Conclusion.

6. Mouse and Keyboard Input.

Overview of Input.

Programming for Mouse Input.

Programming for Keyboard Input.

Conclusion.

7. Inside Controls.

What Are Controls?

Categories of Controls.

Properties, Methods, and Events.

The Core Events.

The Core Properties.

The Core Methods.

Working with Control Type Information.

Five Commonly Used Controls.

A Sample Program: TimeTracker.

The Label Control 436The TextBox Control.

The ListBox and ComboBox Controls.

The Button Control.

The RadioButton and CheckBox Controls.

Conclusion.

8. Data Binding to Controls.

Data Binding.

Complex Data Binding.

Simple Data Binding.

The DataGrid Control.

Conclusion.

9. Inside More Controls.

Detecting Support for Properties, Methods, and Events.

Menus.

Grabbing Events.

The ToolBar and ImageList Controls.

Dialog Boxes.

Conclusion.

10. Building Custom Controls.

Custom Controls.

Controls as Objects.

Deriving Custom Controls from an Existing .NET Control.

Creating Composite Controls.

Creating New Controls.

Adding Animation to a Custom Control.

Authoring Custom Controls for the Multithreaded Environment.

Adding a Custom Control to the Visual Studio .NET Toolbox.

Conclusion.

III. Managing Device Data.

11. Storage.

Smart-Device Data Storage.

File I/O.

Registry Access.

Conclusion.

12. ADO.NET Programming.

Examining ADO.NET.

Working with Data Sets.

Microsoft SQL Server CE.

Microsoft SQL Server.

Web Services.

Conclusion.

13. Synchronizing Mobile Data.

Understanding Remote Data Applications.

Installing Remote Data Connectivity.

Using RDA.

Using Merge Replication.

Choosing between Merge Replication and RDA.

Conclusion.

14. The Remote API.

What Is ActiveSync?

RAPI Fundamentals.

Accessing the Object Store.

Detecting Changes in Device Connection State.

Loading Programs and DLLs.

Conclusion.

IV. Creating Graphical Output.

15..NET Compact Framework Graphics.

An Introduction to .NET Compact Framework Graphics.

Drawing on the Display Screen.

Raster Graphics.

Vector Graphics.

Conclusion.

16. Text and Fonts.

Drawing Text.

Font Selection.

Placing Text.

Text Color.

Conclusion.

17. Printing.

The Printing Pipeline.

Programming for Printed Output.

Direct Printing.

Rendering with GDI.

HP Mobile Printing.

Rendering with PrinterCE.

Conclusion.

V. APPENDIXES.

Appendix A: Hungarian Notation for .NET Programs.

Goals and Objectives.

Guidelines.

.NET Naming Guidelines.

Hungarian Notation.

Appendix B: Supported PMEs for .NET Compact Framework Controls.

Appendix C: Data Synchronization Wizards.

The Virtual Directory Creation Wizard.

The Create Publication Wizard.

Appendix D: Windows API Allocation and Cleanup Functions.

Glossary.

Index

商品描述(中文翻譯)

這本書探討了標準框架與 .NET Compact Framework (CF) 之間的差異,展示了如何使用 Win32 API,並解釋了針對特定機器和功能的專用工具。這是一個實用的、代碼豐富的教程,適合希望將其技能轉移到智能設備的經驗豐富的學生。涵蓋了其他書籍中未提及的主題,如控制項、數據處理、圖形和 ActiveSync。

目錄:

前言
序言
致謝
關於作者

I. 基礎知識
1. .NET Compact Framework 架構
Windows CE 概述

什麼是 .NET?

.NET Compact Framework

結論

2. 什麼是 .NET Compact Framework 程式?
.NET Compact Framework 程式的本質

使用 Visual Studio .NET 2003

Cistern 範例程式

添加類別

結論

3. .NET 類型系統
使用類型資訊:命名空間參考和組件參考

標準類型

字串

類型轉換

記憶體管理

結論

4. 平台調用
P/Invoke 概述

創建 P/Invoke 聲明

支援的 P/Invoke 函數參數

範例程式:CallWin32

編寫 Win32 動態連結庫

手動 P/Invoke 參數傳遞

在非管理和管理代碼之間進行通信

比較 P/Invoke 支援

結論

II. 建立使用者介面
5. 創建表單
表單是什麼?

操作表單

繼承和視覺繼承

結論

6. 滑鼠和鍵盤輸入
輸入概述

滑鼠輸入的程式設計

鍵盤輸入的程式設計

結論

7. 控制項內部
控制項是什麼?

控制項的類別

屬性、方法和事件

核心事件

核心屬性

核心方法

使用控制項類型資訊

五個常用控制項

範例程式:TimeTracker

標籤控制項
文本框控制項

列表框和組合框控制項

按鈕控制項

單選按鈕和複選框控制項

結論

8. 數據綁定到控制項
數據綁定

複雜數據綁定

簡單數據綁定

DataGrid 控制項

結論

9. 更多控制項內部
偵測屬性、方法和事件的支援

菜單

獲取事件

工具列和圖像列表控制項

對話框

結論

10. 建立自訂控制項
自訂控制項

控制項作為物件

從現有 .NET 控制項派生自訂控制項

創建複合控制項

創建新控制項

為自訂控制項添加動畫

為多執行緒環境編寫自訂控制項

將自訂控制項添加到 Visual Studio .NET 工具箱

結論

III. 管理設備數據
11. 儲存
智能設備數據儲存

檔案 I/O

註冊表存取

結論

12. ADO.NET 程式設計
檢視 ADO.NET

使用數據集

Microsoft SQL Server CE

Microsoft SQL Server

網路服務

結論

13. 同步移動數據
了解遠端數據應用程式

安裝遠端數據連接

使用 RDA

使用合併複製

在合併複製和 RDA 之間選擇

結論

14. 遠端 API
什麼是 ActiveSync?

RAPI 基礎

存取物件存儲

偵測設備連接狀態的變化

載入程式和 DLL

結論

IV. 創建圖形輸出
15. .NET Compact Framework 圖形
.NET Compact Framework 圖形簡介

在顯示螢幕上繪圖

光柵圖形

向量圖形

結論

16. 文本和字型
繪製文本

字型選擇

放置文本

文本顏色

結論

17. 列印
列印管道

列印輸出的程式設計

直接列印

使用 GDI 渲染

HP 移動列印

使用 PrinterCE 渲染

結論

V. 附錄
附錄 A:.NET 程式的匈牙利標記
目標和目的

指導方針

.NET