002 _ DELPHI6 Application Development Guide

Source: Internet
Author: User
Tags naming convention ftp client webbroker
DELPHI6 Application Development Guide

Delphi tutorials(002)DELPHI6Application Development Guide Organize netizens (state)Email:Shuaihj@163.com

:

PDF

L original title:Building Delphi 6 Applications

L original press: McGraw-Hill

L Author:(US) Paul Kimmel

L Translator: Guo Xu Zhou Jianming

L series name:Beijing kehai Training Center books

L press: Tsinghua University Press

L ISBN:7900637648

L mounting time: 2001-11-26

L publication date: January 2002

L page number: 576

L versions: 1-1

Introduction

This book describes how to use Delphi 6 to develop applications. After briefly introducing the basic knowledge of Delphi, this book describes in detail the advanced features and new features of Delphi 6, and provides a large number of examples for reference.
The book is divided into 19 chapters. 1 ~ Chapter 8 introduces basic knowledge of Delphi and advanced object-oriented programming. 9 ~ Chapter 12 discusses the knowledge about component programming. 13 ~ Chapter 14 describes some database-related components. 15 ~ Chapter 19 is some of the more advanced content, including the content of the middleware, Web broker, network programming, Windows programming, and SQL programming.

This book is suitable for middle and senior programmers, and can also be used by programmers who migrate from other programming tools to Delphi.

Directory

Chapter 4 go to Delphi
1.1 browse and configure the IDE
1.1.1 open and save files
1.1.2 search code
1.1.3 exploring Delphi
1. Run the program L.4
1.1.5 configure the Work Environment
1.1.6 use context menu
1.2 create an application
1.2.1 create a program
1.2.2 save your work
1.2.3 compile and run the program
1.3 understand the design of Delphi-engineering-centered
1.3.1 project documents
1.3.2 source code file
1.3.3 form and data module
1.3.4 configuration and option files
1.3.5 intermediate compilation unit
1.3.6 backup files
1.3.7 package files
1.3.8 Application Files
1.4 source code file organization
1.4.1 Unit
1.4.2 unit statement
1.4.3 Interface
1.4.4 implementation
1.4.5 define uses clause
1.4.6 type clause
1.4.7 Variable Section
1.4.8 resource Declaration
1.4.9 use of initialization
1.4.10 use of finaization
1.5 code atoms and molecules
1.5.1 operators and operands
1.5.2 keywords
1.5.3 Basic Data Types
1.5.4 write code
1.5.5 condition statements
1.5.6 loop control statement
1.6 compiling processes and functions
1.6.1 compilation process
1.6.2 compile Functions
1.6.3 use of the parameter prefix
Default Value of 1.6.4
1.7 debug the program
1.7.1 PASS command line parameters to the integrated Debugger
1.7.2 simplified interrupt command
Conclusion 1.8
Chapter 2 Learning Object-oriented Pascal
2.1 Delphi practices
2.1.1 less or more
2.1.2 Best Practices
2.1.3 Convention
2.2 components of each windows program
2.2.1 graphical user interface
2.2.2 process and Function
2.2.3 Windows is a message-based operating system
2.2.4 the event handler associates windows with windows.
2.3 Windows API call Process
2.3.1 executable files and Dynamic Link Libraries
2.3.2 how to call windows APIs
2.3.3 declare the API Process
2.3.4 load the database at runtime
2.3.5 create a dynamic link library
2.4 class definition and Object Instantiation
2.4.1 basic class syntax
2.4.2 capture status
2.4.3 added functions
2.4.4 create an object instance
2.5 Information Hiding is a good thing
2.5.1 Access qualifier
2.5.2 Scope
2.5.3 purpose of information hiding
2.6 Add features to a class
2.6.1 status of the Data Maintenance object
2.6.2 features represent data interfaces
2.6.3 feature access method
Conclusion 2.7
Chapter 2 key categories of Delphi Architecture
3.1 view the architecture of Delphi
3.1.1 project browser Option
3.1.2 understand scope, inheritance, and reference in project Browser
3.2 root classes
3.2.1 tobject class
3.2.2 COM interface
3.3 inheritance of components
3.3.1 tpersistent class
3.3.2 tcomponent class
3.3.3 tcontrol class
3.3.4 twincontrol class
3.3.5 use new labeled components
3.3.6 Feature editor class
3.4 tapplication class
3.4.1 Application Event
3.4.2 use the tapplicationevents component
3.5 new Windows Shell Components
3.6 graphics
3.6.1 TCanvas class
3.6.2 restoration of fonts, brushes, and paint brushes added in Delphi 6
3.7 print
3.8 Internet
3.9 Data Structure
3.9.1 use the new tvaluelisteditor component
3.9.2 store data in a table
3.9.3 torderedlist
3.9.4 tcollection class
3.10 data streams
3.10.1 tstrings class
3.11 tparser class
3.12 Exception Handling
3.12.1 use try again t BLOCK statement
3.12.2 use resource protection Blocks
3.12.3 exception
3.13 Multithreading
3.14 opentoolsapi
3.15 microsoftoffice Server
Conclusion 3.16
Chapter 1 defining polymorphism and Dynamic Processes
4.1 use default parameters
4.2 generate Polymorphism
4.2.1 introduce Name Correction
4.2.2 overload Process
4.3 select between the overload process and default parameters
4.4 Inheritance
4.4.1 understand the role of the access qualifier in the inheritance relationship
4.4.2 single inheritance
4.4.3 multi-Inheritance
4.5 static, virtual, and dynamic methods
4.6 overload method
4.6.1 use of inherited Reserved Words
4.6.2 overload Constructor
4.6.3 heavy-load destructor
4.7 re-introduce Method
4.8 abstract class
4.9 Forward Declaration
Conclusion 4.10
Chapter 2 programming of set, constant, and running type information
5.1 immutable Constants
5.1.1 global and local tapes
5.1.2 constant parameters
5.1.3 use const to create static local variables
5.1.4 array Constants
5.1.5 record constant
5.1.6 process constant
5.1.7 pointer constant
5.1.8 used to initialize Constants
5.2 use of enumeration
5.2.1 define array boundaries using Enumeration
5.2.2 predefined enumeration types
5.2.3 process used for Enumeration type
5.3 Set Operations
5.3.1 understand the set and set of statements
5.3.2 use the set Constructor
5.3.3 Assembly Operator
5.3.4 inclode and exclude Processes
5.4 grasp the Array
5.4.1 array exception
5.4.2 define a subfield Value
5.4.3 use type to reduce boundary errors
5.4.4 lower bound and Upper Bound Functions
5.4.5 open array parameters
5.4.6 define static and dynamic arrays
5.4.7 tightening Array
5.5 runtime type information
5.6 type conversion
Conclusion 5.7
Chapter 2 interface mysteries
6.1 win the war on spaghetti
6.2 Practical Guide to class definition
6.2.1 what is in the class?
6.2.2 classes without data
6.2.3 naming convention
6.2.4 use of access delimiters
6.2.5 default public or public Permissions
6.2.6 public interface
6.2.7 public interface
6.2.8 protection Interface
6.2.9 private interface
6.3 create a custom process type
6.3.1 define the process type
6.3.2 callback Process
6.4 default parameter values in the process type
6.5 Transfer Process type parameters
6.6 process type Constants
6.7 event handler
6.7.1 define the event handler
6.7.2 call the event Method
6.7.3 trigger event
6.7.4 define event features
6.7.5 the event handler forwards messages to the application
6.8 message method
6.8.1 find the predefined message constant
6.8.2 define a message processing program
6.8.3 understand the message sending system of Delphi
Conclusion 6.9
Chapter 2 abstract classes and historical Interfaces
7.1 Implementation of class methods
7.1.1 create no data class
7.1.2 constructor and constructor
7.2 maintain the non-object state
7.3 dynamic link library Programming
7.3.1 DLL call Process
7.3.2 write a dynamic access library
7.3.3 handle DLL exceptions
7.3.4 use the shared memory manager for string Parameters
7.3.5 create a project group
7.3.6 test DLL
7.4 thin client program design
7.4.1 use class reference
7.4.2 define a pure virtual abstract class
7.4.3 create an object-oriented DLL
7.4.4 create a thin client program
Conclusion 7.5
Chapter 2 advanced feature programming
8.1 declarative features
8.1.1 access qualifier
8.1.2 definition of read-only and write-only features
8.1.3 security measures for modifying processor-intensive features
8.1.4 use the Assign Method to assign values to objects
8.2 feature storage qualifier
8.2.1 use of default and non-default Storage Methods
8.2.2 use the stored qualifier
8.3 define array features
8.3.1 default qualifier for Array features
8.3.2 implicit range check
8.4 define index features
8.4.1 use enumerated index values
8.5 Polymorphism
8.6 improve the visibility of sub-class features
Conclusion 8.7
Chapter 4 create custom components
9.1 component unit Overview
9.2 use the component wizard
9.2.1 write code for the Extended Tag Control
9.2.2 test controls
9.3 component constructor and destructor
9.4 define component features
9.5 compile and test components
9.5.1 Trap Code
9.6 define traps in code insight
9.7 add component icon
9.7.1 use image editor to create component resource files
9.7.2 search for ICON resources
9.8 install components in the package
Conclusion 9.9
Chapter 2 advanced Component Design
10.1 dynamically load Resources
10.1.1 create a Delphi Component resource file
10.1.2 load Resources
10.2 publish all components
10.2.1 Declare Public component features
10.2.2 call setsubcomponent to persistently publish objects
10.3 create dialog box component
10.4 overload notification method
10.5 create a feature editor
10.5.1 subclass existing Feature Editor
10.5.2 custom Feature Editor
10.6 persistence non-public features
10.6.1 overload defineproperties
10.6.2 treader and twriter
10.6.3 write complex types of data
Conclusion 10.7
Chapter 4 use components to develop consistent Interfaces
11.1 custom components
11.1.1 three C components of custom components
11.1.2 re-Decomposition
11.1.3 what are the benefits of small changes?
11.1.4 good strategy
11.1.5 component ratio
11.2 create a component template
11.2.1 define a component template
11.3 form template and form inheritance
11.3.1 create a form template
11.3.2 use the template form
11.4 static and dynamic component usage
11.4.1 dynamically create a form
11.4.2 a dynamic database form
11.5 owner drawing component
11.5.1 custom mesh Rendering
11.5.2 owner drawing tmainmenu component
Conclusion 11.6
Chapter 4 use Microsoft automation components
12.1 toleserver
12. 2 Microsoft automated Server
12.2.1 overview of automated Server Components
12.2.2 Import Type Library
12.2.3 createoleobject
12.2. 4 createremotecomobject
12.3 accesskeysecret
12.3.1 use access to parse data with a fixed length
Conclusion 12.4
Chapter 4 use the data access component
13.1 ODBC (Open Database Connection)
13.1.1 create an ODBC alias
13.1.2 change the ODBC alias Configuration
13.1.3 test connection
Borland database engine 13.2
13.3 database Form Wizard
13.3.1 use SQL explorer to create a BDE alias
13.3.2 use the database Form Wizard
13.4 dataaccess component
13.5 tdataset
13.6 tbdedataset and tdbdataset
13.7 tTable component
13.7.1 sessionname and databasename features
13.7.2 table attributes
13.7.3 Fields
13.8 tquery component
13.8.1 compile an SQL SELECT statement
13.8.2 open and execsql Methods
13.8.3 requestlive features
13.8.4 Params
13.8.5 updateobject features
13.9 tdatasource component
13.10 tdatabase
13.10.1 carhedupdates
13.10.2 transaction isolation level
13.11 tsession
13.12 tbatchmove
13.13 tupdatesql
13.13.1 create a sample updatesql Application
13.13.2 compile the updatesql application code
Conclusion 13.14
Chapter 4 Use Data Controls
14.1 two-layer and three-layer design
14.2 Data Control Overview
14.2.1 DBGrid
14.2.2 dbnavigator
14.2.3 dbtext
14.2.4 dbedit
14.2.5 dbmemo
14.2.6 dbimage
14.2.7 dblistbox
14.2.8 dbcombobox
14.2.9 dbcheckbox
14.2.10 dblookuplistbox
14.2.11 dblookupcombobox
14.2.12 dbrichedit
14.2.13 dbctrlgrid
14.2.14 dbchart
14.2.15 connect to datasource and Dataset
14.2.16 Data Control Features
14.3 dbrichedit Control
14.3.1 format text
14.3.2 modifying paragraph features
14.3.3 search for text
14.3.4 stream blob Field
14.4 DBGrid Control
14.4.1 column set and column object
14.4.2 grid events
14.4.3 custom unit raster drawing
14.5 dblookuplistbox and dbcombobox controls
14.6 dbchart Control
14.7 dynamic and static Fields
14.7.1 field editor
14.7.2 Field Features: use field constraints, default expressions, and edit masks
14.7.3 process field-level events
14.7.4 define field-level Search
14.7.5 last notes on dynamic and static field components
14.8 database dictionary
14.8.1 create a data dictionary
14.8.2 associate the dictionary with Dataset
14.9 create custom data controls
14.9.1 add tfielddatalink component
14.9.2 make the school copy
Conclusion 14.10
Chapter 2 middleware Programming
15.1 introduction to the DAS component
15.1.1 define server applications
15.1.2 define customer Program
15.2 perform query on the servers of the desert.
15.2.1 server program implementation
15.2. 2 Implement customer programs
15.3 handle errors
15.3.1 create client and server sample programs
15.3.2 use the error handling form
15.4 briefcase client and server programs
Conclusion 15.5
Chapter 2 Intranet and Internet programming
16.1 Transmission Control Protocol (TCP) Component
16.1.1 Indy client TCP component
16.1.2 Indy server TCP component
16.2 User Datagram (UDP) Component
16.3 establish an FTP Client Program
16.3.1 connect to the FTP server
16.3.2 upload and download files
16.3.3 send commands to the FTP server
16.4 create a Telnet client program
16.5 use POP3 and SMTP to create an Internet email client
16.5.1 use tidpop3 Components
16.5.2 use the tidmessage component
16.5.3 use tidsmtp Components
Conclusion 16.6
Chapter 4 Use the webbroker component to create a web server
17.1 HTML Basics
17.1.1 URL (Uniform Resource Locator)
17.1.2 basic HTML Structure
17.1.3 use the replaceable parameter tag with the webbroker
17.2 use webbroker Components
17.2.1 webdispatcher component
17.2.2 tpageproducer component
17.2.3 tdatasetpageproducer component
17.2.4 View table data
17.2.5 tquerytableproducer component
17.3 use cookies
Conclusion 17.4
Chapter 4 Create a Windows program
18.1 preparations
18.1.1 very helpful and simple work
18.1.2 Version Control
18.2 Delphi engineering options in development
18.2.1 application settings
18.2.2 set runtime error
18.2.3 debugging options
18.2.4 add version information
18.2.5 specify directory and condition options in the richeditor Project
18.3 create a main form
18.3.1 multi-Document Interface
18.3.2 Add the tmainmenu component
18.3.3 add Toolbar
18.3.4 tactionlist and taction Components
18.3.5 create a status bar
18.4 create an editor form
18.4.1 auto merge Format menu
18.4.2 create a unique temporary file
18.5 permanently Save settings of applications in the Registry
18.6 make the program as needed
18.6.1 debugging and Testing
18.6.2 Quality Assurance
18.6.3 documentation
18.7 project deployment options
Conclusion 18.8
Chapter 2 Delphi SQL programming
19.1 Structured Query Language
19.2 SQL programming
19.2.1 SELECT statement
19.2.2 Delete
19.2.3 insert
19.2.4 update
19.2.5 SQL and tquery Components
19.3 advanced SQL programming
19.3.1 define the WHERE clause
19.3.2 use join clause
19.3.3 sort data
19.3.4 group by statement
19.3.5 having clause
19.3.6 union and Intersection
19.3.7 define nested queries
Conclusion 19.4
Appendix A Delphi extension example using opentools API
A.1 Introduction to opentools APIs
A.1.1 opentools Interface
A.1.2 creation wizard
A.2 create custom wizard
A.2.1 define new expert wizard
A.2.2 add menu items to the menu of Delphi
A.2.3 create a Code Generator
A.3 codegen.txt
A.3.1 add Wizard to new items dialog box
A.4 create a component Editor
A.4.1 define context menu
A.4.2 register the component Editor
A.4.3 shadow label component Editor
A.5 Summary
Appendix B create an NT Service Program
B .1 create a service program
B .1.1 define the mail sender Service
B .2 install the Service Program
B .3 use the Service Control Manager
B .4 service Event Log
B .5 service debugging
B .6 Summary
Appendix C transforms programs into automated servers
C.1 add automation objects to a project
C.1.1 use the automated object wizard
C.1.2 define interfaces in the Type Library Editor
C.1.3 implementation Interface
C.1.4 run the server to register the Type Library
C.2 establish test procedures
C.3 Summary
Appendix D use Delphi to implement wireless programs
D.1 preparations
D.2 wireless markup language basics
D.2.1 define desktop (or WML Documentation)
D.2.2 define a card
D.2.3 format mark
D.2.4 navigation buttons
D.2.5 Template
D.2.6 input fields and variables
D.3 wireless applications and Delphi
D.4 use Delphi to create a wireless server
D.4.1 create a contact list
D.4.2 use web broker to create a CGI Server
D.4.3 Test Procedure
D.5 Summary

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.