Visual C++.NET技术内幕:英文版

Visual C++.NET技术内幕:英文版
作 者: George Shepherd David Kruglinski
出版社: 机械工业出版社
丛编项: 微软 NET经典原版系列
版权说明: 本书为出版图书,暂不支持在线阅读,请支持正版图书
标 签: VC++.NET
ISBN 出版时间 包装 开本 页数 字数
未知 暂无 暂无 未知 0 暂无

作者简介

  除了为Syncfusion公司编写.NET开发工具之外,George Shepherd还在DevelopMentor公司教授课程。他是本书多个版本的合著者,也是名著《MFC Internals》的第一作者。他还是《MSDN Magazine》的特邀编辑。David Kruglinski是Microsoft Visual C++开发小组最早的成员。在完成本书第四版之后,他于1997年4月死于滑翔机事故。

内容简介

深入讲解传统的Windows核心切能和现代的.NET程序设计 本书是业内最为经典的Visual C++程序设计教程的最新版.完整介绍了如何使用Visual C++.NET和Microsoft.NET框架创建.NET应用程序。除了深人阐述语言语法、编程工具和API以及Visual C++.NET的新功能之外本书还提供了大量专家建议和省时省力的编程技巧。 本书涵盖的主题包括:基础Windows与VisuaI C++, MFC精髓与MFC应用向导 Visual C++.NET向导,Windows消息映射,传统的GDI涵数、字体和位图,对话框,通用控件和Microsoft ActiveX控件MicrosofT Win32核心内存管理,Windows消息处理和多线程编程 MFC文档-视图架构菜单、快捷键、 Rich Edit控件、属性表。工具栏和状态栏,可重用窗口基类,将文档与视图分离。读写文档——SDI和MDI程序。打印和打印预览,拆分式窗口和多视图,上下文相关帮助动态链接库,不带文档或视图类的MFC COM、自动化、ActiveX与OLE 自动化和IDispatch,使用剪贴板和OLE拖放进行数据传输,ATL,ActiveX控件,OLEDB模板 Internet编程TCP/IP、Winsock、WinlNet、DHTML、ATL Server .NET及其他 .NET平台,.NET与托管C++的互操作,使用托管C++进行Windows Forms GDI+和.NET Web Services开发,微软ADO.NET

图书目录

Acknowledgments
Introduction

Part

I

Windows,

Visual

C++

.NEL

and

Application

Framework

Fundamentals

1

Windows

and

Visual

C++

.NET

The

Windows

Programming

Model
Visual

C++

.NET

Components


2

The

Microsoft

Foundation

Class

Library

Application

Framework

Why

Use

This

Application

Framework?
What's

an

Application

Framework?
MFC

Library

Message

Mapping

PartII

MFC

Essentials

3

Getting

Started

with

the

MFC

Application

Wizard

What's

a

View?
MFC

Library

Application

Types
MFC

Library

User

Interfaces
Ex03a:The

"Do-Nothing"

Application
The

CEx03aViewView

Class
Drawing

Inside

the

View

Window:The

Windows

GDl
A

Preview

of

the

Resource

Editors
Win32

Debug

Target

vs.

Win32

Release

Target
Understanding

Precompiled

Headers
Two

Ways

to

Run

a

Program

4

Visual

C++

.NET

Wizards

Wizard

Types
How

Wizards

Work
Creating

a

Wizard
Creating

a

Wizard

for

Developing

Web

Applications

Using

Managed

C++

5

Windows

Message

Mapping

Getting

User

Input:Message

Map

Functions
Using

Windows

Mapping

Modes
Creating

a

Scrolling

View

Window
Using

Other

Windows

Messages

6

Classic

GDI

Functions,

Fonts,

and

Bitmaps

The

Device

Context

Classes
GDl

Objects
Fonts
The

Ex06a

Example
The

Ex06b

Example
The

Ex06c

Example;Cscroll

View

Revisited
Bitmaps
DIBs

and

the

CDib

Class
Going

Further

with

DIBs
Putting

Bitmaps

on

Pushhuttons


7

Dialog

Boxes

Modal

vs.

Modeless

Dialog

Boxes
Resources

and

Controls
Programming

a

Modal

Dialog

Box
The

Ex07a

Example:The

Dialog

Box

That

Ate

Cincinnati
Enhancing

the

Ex07a

Application
Identifying

Controls;CWnd

Pointers

and

Control

IDs
Setting

the

Dialog

Box

Background

Color

or

a

Control

Color
Adding

Dialog

Controls

at

Run

Time
Using

Other

Control

Features
Windows

Common

Dialog

Boxes
Programming

a

Modeless

Dialog

Box

8

Common

Controls

Standard

Common

Controls
The

Ex08a

Example:Standard

Common

Controls
Advanced

Common

Controls
The

Ex08b

Example:Advanced

Common

Controls

9

Using

ActiveX

Contlols

ActiveX

Controls

vs.

Ordinary

Windows

Controls
lnstalling

ActiveX

Controls
The

Calendar

Control
ActiveX

Control

Container

Programming
The

Ex09a

ExampIe

f

An

ActiveX

Control

Dialog

Container
ActiveX

Controls

in

HTML

Files
Creating

ActiveX

Controls

at

Run

Time
The

Ex09b

Example:The

Web

Browser

ActiveX

Control
Picture

Properties
Bindable

Properties

Change

Notifications

10

Win32

Core

Memory

Management

Processes

and

Memory

Space
How

Virtual

Memory

Works
The

tulAlloc

Function;Committed

and

Reserved

Memory
The

Windows

Heap

and

the

GlobalAlIoc

Function

FamiIy
The

SmaIl-Block

Heap,

the

C++

new

and

deleta

Operators,

and

--heapmin
Memory-Mapped

FiIes
Accessing

Resources
Tips

for

Managing

Dynamic

Memory
Optimizing

Storage

for

Constant

Data

11

Windows

Message

Plocessing

and

Multi-Threaded

Programming

Windows

Message

Processing
On-Idle

Processing
Multi-Threaded

Programming

Part

III

MFC's

Document-View

Architecture

12

Menus,

Keyboald

Accelerators.

the

Rich

Edit

Control,and

Property

Sheets

The

Main

Frame

Window

and

Document

Classes
Windows

Menus
Keyboard

Accelerators
Command

Processing
The

Application

Framework's

Built-in

Menu

Commands
MFC

Text

Editing

Options
The

Ex12a

Example
Property

Sheets
The

Ex12a

Example

Revisited
The

CMenu

Class
Creating

Floating

Shortcut

Menus
Extended

Command

Processing

13

Toolbars

and

Status

Bars

Control

Bars

and

the

Application

Framework
Toolbars
ToolTips
Locating

the

Main

Frame

Window
The

Ex13a

Example;Using

Toolbars
Status

Bars
The

Ex13b

Example;Using

Status

Bars
Rebars
The

Ex13c

Example;Using

Rehars

14

A

Reusable

Frame

Window

Base

Class

Why

Reusable

Base

Classes

Are

Difficult

to

Write
The

CPersistentFrame

Class
The

CFrameWDd::ActivateFrame

Member

Function
The

PreCreateWindow

Member

Function
The

Windows

Registry
Using

the

CString

Class
The

Position

of

a

Maximized

Window
Control

Bar

Status

and

the

Registry
Static

Data

Memhers
The

Default

Window

RectangIe
The

Ex14a

Example;Using

a

Persistent

Frame

Window

Class
Persistent

Frames

in

MDl

Applications

15

Separating

the

Document

frwe

Its

View

Document-View

Interaction

Functions
The

SimpIest

Document-View

Application
The

CFotmVirw

Class
The

CObject

CIass
Diagnostic

Dumping
The

Ex15a

ExampleL:A

Simple

Document-View

lnteraction
A

More

Advanced

Document-View

Interaction
The

CDocument::DeleteContents

Function
The

CObList

ColIection

CIass
The

Ex15b

Example:A

Multi-View

SDl

Application
TWo

Exercises

for

the

Reader

16

Reading

and

Writing

Documents

What

ls

Serialization?
The

SDI

Application
The

Ex16a

Example;SDl

with

Serialization
Windows

Explorer

Launch

and

Drag

and

Drop
MDl

Support
The

Ex16b

Examplet

An

MDl

Application
MTI

Support

17

Printing

and

Plint

Preview

Windows-Based

Printing
Print

Preview
Programming

for

the

Printer
The

Ex17a

Example

:A

WYSlWYG

Print

Program
Template

ColIection

Classes

Revisited:The

CArray

Class
The

Ex17b

Example:A

Multi-Page

Print

Program

18

Splitter

Windows

and

Multiple

Views

The

Splitter

Window
View

Options
Dynamic

and

Static

Splitter

Windows
The

Ex18a

Example:A

Single

View

Class

SDI

Dynamic

Splitter
The

Ex18b

Example:A

Double

View

Class

SDl

Static

Splitter
The

Ex18c

Example:Switching

View

Classes

Without

a

Splitter
The

Ex18d

Example:A

Multiple

View

Class

MDI

Application

19

Context-Sensitive

Help



WinHelp

vs.

HTML

Help
The

Windows

WinHeIp

Program
The

Application

Framework

and

WinHelp
A

Help

Example

with

No

Programming

Required
Help

Command

Processing
Example

Ex19b:Help

Command

Processing
MFC

and

HTML

Help
Example

Ex19c:HTML

Help

20

Dynamic-Link

Libraries

DLL

Fundamentals
MFC

DLLs:Extension

vs.

Regular
A

Custom

Control

DLL

21

MFC

Proglams

Without

Document

or

View

Classes

The

Ex21a

Example:A

Dialog

Box-Based

Application
The

Ex21b

Example:An

SDI

Application
The

Ex21c

Example:An

MDl

Application

Part

IV

C0M,

Automation,

ActiveX,

and

0LE

22

The

Component

Object

Model

ActiveX

Technology
What

Is

COM?
The

Ex22a

Examplet

Simulated

COM
Real

COM

with

the

MFC

Library
The

Ex22b

Example:An

MFC

COM

ln-Process

Component
The

Ex22c

Exampfe:An

MFC

COM

Client
Containment

vs.

Aggregation

vs.

Inheritance

23

Automation

Creating

C++

Components

for

VBA
Automation

Clients

and

Components
Automation

lnterfaces
Automation

Programming

Choices
An

MFC

Automation

Component
An

MFC

Automation

Client

Program
An

Automation

Client

Program

That

Uses

the

Compiler's#import

Directive
The

VARlANTType
The

COteVariant

Class
VBA

EarIy

Binding

24

Uniform

Data

Tlansfer:Clipboald

Transter

and

OLE

Drag

and

Drop

The

IDBtaObject

Interface
The

FORMATETC

and

STGMEDIUM

Structures
MFC

UDT

Support
The

MFC

CRectTracker

Class
The

Ex24a

Examplet

A

Data

Object

Clipboard
MFC

Drag

and

Drop
The

Ex24b

ExampIe

f

OLE

Drag

and

Drop

25

lntloducing

the

Active

Template

Library

Revisiting

COM
Writing

COM

Code
The

COM

lnfrastructure
An

ATL

Roadmap
Client-side

ATL

Programming
Server-Side

ATL

Programming
Attrihuted

Programming

26

ATL

and

ActiveX

Controls

What

Are

ActiveX

Controls?
Usina

ATL

to

Write

an

ActiveX

Control
Creating

an

Attributed

Control

27

The

OLE

DB

remplates

Why

OLE

DB?
The

Basic

OLE

DB

Architecture
The

Basic

OLE

DB

Template

Architecture
Gre8ting

an

OLE

DB

Consumer
Cre8ting

an

OLE

DB

Provider
Attributed

OLE

DB

Programming

Part

V

Proglamming

for

the

Internet

28

Internet

Essentials

An

Intemet

Primer
Building

an

Intranet
Winsock

Programming
BuiIding

a

Web

Server

Using

CHttBtockingSocket
BuiIding

a

Web

CIient

Using

CHttBtockingSocket
WinInet
BuiIding

a

Web

Client

Using

the

MFC

Winlnet

Classes
Asynchronous

Moniker

Files

29

Introducing

Dynamic

HTML

The

DHTML

Object

Model
Visual

C++

.NET

and

DHTML
The

Ex29a

Example:MFC

and

DHTML
The

Ex29b

Example:DHTML

and

MFC
The

Ex29c

Example:ATL

and

DHTML
For

More

Information

30

ATL

Server

IIS
ISAPl

Server

Extensions
Enter

ATL

Server
The

Ex30a

Example:An

ATL

Server

Web

Site

Part

VI

.NET

and

Beyond

31

Miclosoft

.NET

Windows

Component

Technology
The

Common

Language

Runtime

32

Managed

C++

The

Common

Language

Runtime

Is

Your

Friend
Why

Use

C++?
Managed

C++

Extensions
Visual

C++

.NET

and

the

Managed

Extensions
The

Ex32a

Example

:A

Managed

C++

DLL

Assembly
Making

the

Assembly

Usable
The

Ex32b

Example

:A

Managed

CIient

Executable
Adding

Managed

Extension

Support

33

Programming

Windows

Forms

Using

Manaed

C++

Windows

Forms
What's

Missing

from

Windows

Forms

34

Plogramming

ASP.NET

Using

Managed

C++

The

lnternet

as

a

Development

Plafform
The

Evolution

of

ASP.NET
The

RoIe

of

IIS
ASP.NET's

Compilation

Model
The

Page

Class
The

HTTP

Pipeline
Web

Services

35

Ploqramming

ADO.NET

Using

Managed

C++

Managed

Providers
Working

with

the

Providers
ADO.NET

Datasets

A

Message

Map

Functions

in

the

MFC

Liblary
B

MFC

Library

Runtime

Class

ldentification

and

Dynamic

Object

Creation
Index