061 _ Delphi7 from entry to entry

Source: Internet
Author: User
Tags interbase web database webbroker
Document directory
  • Delphi7 from entry to entry
Delphi7 from entry to entry

DelphiTutorial Series of books(061)Delphi7From entry to entry Organize netizens (state)Email:Shuaihj@163.com

:

Source code of the PDF attachment

  • Original Title: Mastering Delphi 7
  • Original Publishing House: sybex
  • Author: [us] Marco Cantu
  • Translator: Luo Zheng
  • Press: Electronic Industry Press
  • ISBN: 7505390163
  • Mounting time: 2003-11-14
  • Published on: February 1, October 2003
  • Start: 16
  • Page number: 872
  • Version: 1-1

Introduction

As the seventh edition of the "Delphi from entry to entry" series, this book covers the latest features of Delphi, including. net support and embedded tools, XML support and web services, using VCL and clx to build custom components, as well as the Delphi 7 Runtime Library. This book is intended for those who have knowledge of programming, especially senior developers and component developers.

Preface

When Zack urlocker handed over the code product named Delphi to me for the first time, I felt that this could change the life of me and many other software developers. Over the past few years, by comparing with the Windows C ++ library, I finally thought That Delphi is the best combination of object-oriented programming and visual programming, this is not only true for windows, but also for other operating systems, such as Linux and later versions. the same is true for the. NET operating system.

Delphi 7 is an exciting and powerful development tool built on the basis of existing traditions and inherent VCL. For example, it provides database functions, client-friend firewall functions, multi-layer functions, Intranet functions, or Internet solutions. It also provides powerful control and management functions, this greatly improves the software production efficiency. Using Delphi and flexibly applying various technologies, coupled with some of the techniques described in this book, you can make full use of these functions.

Seven versions of Delphi

The initial version of Delphi provides some very useful basic functions, such as form-based features and object-oriented methods, fast Compilation speed, and powerful database support, the strong affinity and the component technologies it brings in Windows programming. But the most important element in Delphi is its object-oriented pascal language, which is the basis of all other functions.

Delphi 2 is even better! It provides the following important additional functions: multi-record objects and improved database table functions, OLE Automation Support and different data types, good compatibility and integration with Windows 95 operating systems, long string data types, and visual form lnheritance (visible form inheritance ). Delphi 3 adds the code recognition technology, provides DLL debugging functions, component templates, teechart, demo-cube, webbroker technology, component software packages, activeform technology, and excellent features that can be integrated with COM.

Delphi 4 provides the appbrowser Editor, new functions related to Windows 98, improved Ole and COM support functions, extended database components, and a large number of VCL-based additions. function, it includes the plug-in (docking) function, the Force Constraint function, and the anchor control function. Delphi 5 has made significant improvements to the IDE in the programming environment (as a result, many changes cannot be listed here ), in addition, the extended database support function (with the specified ADO and InterBase dataset) is provided for users) improved mid activitysession function for Intemet, teamsource version control tool, conversion function, framework principle, and some new components.

In Delphi 6, the component library (Component Library) of cross-platform (cross-platform clx) can be used to implement cross-platform software development, in addition, this version provides extended runtime libraries, dbexpress database engines, web services, XML exception handling functions, and a powerful web development framework, in addition, the IDE is improved in a more comprehensive manner, and a large number of components and classes are provided. This book will introduce them in detail later.

After improvements (such as support for soap and datasnap functions), Delphi 7 indeed makes some new technologies more powerful, it installs and provides some new technologies (such as Windows XP theme or UDDI), but more importantly, this version also provides a set of third-party tools that can be easily used: rave reporting engine, intraweb web application development technology, and modelmaker design environment. Finally, Delphi 7 provides users with the first set (or even the old version of Delphi provides this compiler) for compiling the Borland compiler of PASCAL/Delphi, instead of tracking Intel CPU, we will switch to tracking. netpencil platform. This practice has also created a new world for program designers.

Delphi is a great tool and a complex programming environment, which contains a large number of elements. This book will help developers master Delphi programming skills, including the use of Delphi language skills, component usage skills (including the existing components and those developed by Users), database and client server functions, as well as the key elements that need to be paid attention to when designing windows, COM, Internet and web programs.

When reading this book, you do not need to have the knowledge related to the above topics. You only need to know the basic knowledge about program design. After a preliminary understanding of Delphi, especially after reading the introductory chapter, the reader will surely feel a lot of help. This book will then give an in-depth introduction to each of the relevant chapters. Most of the introductory content about the previous version will be deleted. Some of the content and related Pascal information can be found on the author's website. The relevant content will be introduced in appendix C.

Structure of this book

This book is divided into four parts:

· In the first part, Chapter 1st introduces some new functions provided by the integrated development environment (1de) of Delphi 7.

Next we will introduce some content related to the Delphi 7 Language, Runtime Library (RTL), and visual component library (VCL. Chapter 4 of the first part introduces the majority of basic knowledge, the most common controls, the development of advanced user interfaces, and the use of various forms.

· Part 2 "Delphi object-oriented architecture" describes the basic structure of Delphi applications, development methods of custom components, usage of libraries and software packages, modelmaker models, and COM +.

· Part 3 "Delphi Database-Oriented Architecture" introduces a simple database access method, this article gives an in-depth introduction to some data-related controls, the customer's friend server program design, dbexpress, Interbase, ADO, datasnap, and self-developed methods and report functions for data-related controls.

· Part 4 "Delphi, Internet and. net preview "first introduces the TCP/IP socket program design, Intemet protocol and Indy, and then introduces some specific content, for example, Web Server Extension (using webbroker, WebSnap, intraweb and other application technologies). Finally, some methods for developing web services through XML are introduced.

As described above, this book covers almost all topics of interest to Delphi users and provides users with all levels of programming expertise, this knowledge applies to "advanced" developers and component developers.

This book attempts to completely skip those references and focus on how to use Delphi efficiently. Because delphi provides powerful online documents, it may be unnecessary to introduce the methods list and component attributes in this book. And once the software makes some changes to the content, it will be out of date. We recommend that you read this book and read the corresponding Delphi help file to obtain the required reference information.

However, this book also tries its best to make it easier for users to read without using computers (if the reader really wishes to do so ). Therefore, under the guidance of this idea, this book uses a wealth of resources and a list containing important content to help explain the content. At the same time, some small conventions are used for readers to easily read. For example, code references are printed in the same way they are in the Delphi Editor, that is, the keywords are in the black body, the comment is italic.

. Free Code resources provided on the Web

This book uses a lot of sample code. After introducing all the theories of the Delphi Component, we will use one (sometimes multiple) sample code to demonstrate how these functions are applied. All in all, this book uses more than 300 examples. If you compress these program design examples into ZIP files with a size less than 2 MB, the files can be found on the sybex website (www.sybex.com) and the author's website (www.marcocantu.com. Most of these examples are very simple and follow the step-by-step process. Some examples also have intermediate steps, some of which provide some solutions, others are gradually improved.

Note: you must first install the Delphi sample database for some database examples. These example databases are installed at the same time during the installation of the default Delphi method. For other database examples, you need to use the interbaseemployee Sample Database (of course, you also need to use the InterBase Server ).

In addition, I also provide the source code in the book in the form of HTML on my website. These Source Codes highlight the syntax section, it also provides cross-reference for the keywords and identifiers (class, function, method, and attribute name. Cross-reference is an HTML file, readers can use their browsers to conveniently search for keywords or identifiers that appear in the Program (note that this file does not provide a complete search engine, but for such readers, this function is sufficient ).

The Path Structure of the sample code is very simple. Basically, each chapter in the book has its own folder, and a sub-folder (for example, 03/fileslist) is provided for each example in its own folder ). When you describe an example in text, you can use the name of each example to reference it (for example, filelist ).

Note: You must carefully read the source code-related documentation README, which contains important information about how to run the software correctly and efficiently.

How to contact the author

If you find any problems in the text or examples of this book, the publishers and authors of this book are very welcome to point out it in a timely manner. In addition to welcoming readers to point out errors and problems in the book, you are also welcome to give your views and opinions on the book. For example, you can tell us which examples in the book are of the most practical value, or the example that you like best.

There are many ways to send such feedback:

· On its website (www.sybex.com), sybex provides visitors with updated text or code. To make your own comments on this book, click the contactsybex link and select bookcontent issues.

This link opens a form in which users can enter their comments.

· I provide readers with more detailed information about this book and Delphi on my website. On this website, readers may find answers to the questions they want. The website also provides related news and tips, technical topics, and free online books (for more information, see appendix C) related White Papers and the delphi components and tools collected by the author (relevant content is described in Appendix ).

· In addition, I have set up newsgroups for my own books and delphio & A problems. Readers can access the author's website to obtain the list of these newsgroups and subscribe to their commands (in fact, these newsgroups are always free of charge, but they need a logon password to access them ). In addition, these newsgroups can be accessed through the web interfaces of the corresponding links on the author's website.

Finally, the reader can also get in touch with the author via email, the author's e-mail for marco@marcocantu.com. If the question is a technical question, first try to contact the author through a newsgroup. In this way, you may obtain the desired answer as soon as possible. There may also be many people to help you solve the problem. I usually have a lot of content in my mailbox, so I am sorry that I cannot answer each email in a timely manner (In addition, contact the author in English or Italian ).

Directory

Part 1 Basics

Chapter 2 Delphi7 and its IDE

Delphi version

IDE Overview

Delphi Editor

Form Designer

Component panel secret

Manage projects

Additional and external delphif tools

Files generated by the system

Object Library

Updates to the debugger in Delphi 7

Summary

Chapter 2 Delphi programming language

Core Language Features

Class and Object

Encapsulation

Constructor

Delphi Object Reference Model

Inherit existing types

Delayed binding and Polymorphism

Type-safe Conversion

Interface

Exception Handling

Record Error

Class reference

Summary

Chapter 4 Runtime Library

RTL Unit

Data Conversion

About currency conversion

Use sysutils to manage files

Tobject class

Summary

Chapter 4 core library

RTL package, VCL, and clx

Tpersistent class

Tcomponent class

Event

Lists and containers

Stream

Summary of core VCL and baseclx units

Summary

Chapter 2 visual controls

VCL and visualclx

Tcontrol and derived class

Open the Component tool box

Control-related technologies

Listview and Treeview controls

Summary

Chapter 4 create a user interface

Multi-Page forms

Toolbar controls

Themes and styles

Actionlist component

Toolbar container

Actionmanager Architecture

Summary

Chapter 4 Use Forms

Tform class

Input directly in the form

Drawing in a form

Special tips: letter mixing, color keys, and animation APIs

Position, size, volume, and zoom Ratio

Create and close a form

Dialog Box and other second-level forms

Create dialog box

Pre-defined dialog box

About box and splash screen

Summary

Part 2: Delphi object-oriented Architecture

Chapter 2 Structure of Delphi application

Application Object

From event to thread

Check previous instances of the application

Create an MDI Application

Framework and subwindow in Delphi

MDI applications with different subwindows

Visual form inheritance

Understanding the framework

Basic Forms and interfaces

Delphi Memory Manager

Summary

Chapter 4 compiling delphi components

Expand the Delphi library

Create your first component

Create a composite component

Complex graphic components

Customize Windows controls

Dialog Box in the component

Set attributes

Define Custom Actions

Edit Attribute Editor

Compile the component Editor

Summary

Chapter 4 libraries and component packages

The role of DLL in Windows

Use existing DLL

Create DLL in Delphi

Advanced features of Delphi DLL

DLL in memory: code and Data

Use the Delphi package

Form in the package

Component Package Structure

Summary

Chapter 2 modeling and 00p programming (using modelmaker)

Understand the internal model of modelmaker

Modeling and UML

Encoding function of modelmaker

Documents and macros

Code re-Decomposition

Highlights

Summary

Chapter 2 from com to COM +

Introduction to Ole and COM technology History

Implement iunknown

First COM Server

Automation

Compile an Automation server

Use composite document

Describes the axtivex control.

Compile ActiveX Controls

Introduction to com +

COM and. Net in Delphi 7

Summary

Part 3 Delphi Database-Oriented Architecture

Chapter 2 database architecture of Delphi

Database Access: dbexpress, local data, and others

Mvbase: Independent clientdataset

Use Data-sensitive control of Delphi

Dataset component

Dataset Field

Locate a dataset

Custom Database Grid

Database applications with standard controls

Group and total

Master/detail structure

Handle database errors

Summary

Chapter 2 programming with the dbexpress Client Server

Client/Server Architecture

Elements of Database Design

Interbase Introduction

Dbexpress Database

Dbexpress Components

Dbexpress demo

Package and Cache

Use Interbase Express

Actual Problems

Summary

Chapter 1 use ADO

Microsoft Data Access Component (MDAC)

Use the dbgo component

Use the jet engine

Cursor

Transaction Processing

Update Data

Disconnected record set

About ado.net

Summary

Chapter 4 Multi-layer datasnap Application

One, Two, and Three Layers in Delphi's Development History

Create a sample application

Add constraints to the server

Add features to the client

Advanced datasnap features

Summary

Chapter 4 compiling database Components

Data Link

Write field-oriented data Sensitive controls

Create custom data links

Customize DBGrid Components

Create a custom data set

Directory in the dataset

Object Data Set

Summary

Chapter 4 Use rave for report

Rave Introduction

Components of the rave designer

Advanced rave

Summary

Part 4: Delphi, Internet, and. Net Preview

Chapter 2 Internet programming: integration with yuyu and Indy Components

Create a Socket Application

Send and receive emails

Work with HTTP

Generate html

Summary

Chapter 2 web programming using webbroker and WebSnap

Dynamic Web Page

Webbroker Technology in Delphi

Example

WebSnap

WebSnap and database

Session, user, and license

Summary

Chapter 2 web programming using intraweb

Introduction to intraweb

Create an intraweb Application

Web Database Application

Summary

Chapter 4 use XML Technology

XML Introduction

Programming with Dom

XML and internetexpress

Use XSLT

Process large XML documents

Summary

Chapter 2 web services and soap

Web Services

Create a network service

Datasnap on soap

Process attachments

Support for UDDI

Summary

Chapter 2 from the perspective of Delphi,

Install Delphi for.net Preview

Microson. NET platform

Intermediate Language

Useless storage unit collection

Deployment and version confirmation

Summary

Chapter 2 Delphi for. netpreview: language and RTL

Removed ddphi Language Features

New Features of Delphi

Runtime Library and VCL

VCL

Use of Microsoft Library

Implement Asp.net using Delphi

Summary

Other Delphi tools provided by Appendix

Appendix B Delphi tools provided by other sources

Appendix C free Delphi books for this book

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.