Delphi Advanced Basic Skills Description

Source: Internet
Author: User

The following discussions are based on Delphi XE8, mainly the use of Delphi new features, such as: Unicode, generics, anonymous functions, etc. [XE2 should be supported].

The advantage of using new features is to write less code and improve efficiency. This blog no longer discuss the old version of Delphi, the old version of the data too much, do not need too much repetition.

This blog does not discuss third-party controls, because Delphi has become a reality, third-party control is difficult to support the new version, but Delphi itself as a non-programmer tool, or very suitable.

non-programmers to use Delphi survival ( survival refers to Delphi skilled correct problem ) down, please refer to the following skills: ( This article will continue to be more content and add instance code )

To create a set of their own Delphi unit support chain , encountered problems, can quickly start.

first, the default skills : syntax, the application of common controls, these are queryable knowledge.

Second, the name of the law: in English words to variables (class name, cell name, control name, etc.) take the correct name. About naming

Three, must master the skill :

1. The TThread is extended and improved to become the base threading class, where all subsequent threads are required to inherit from this class.

If the thread is not mastered, the program is missing too many possibilities. A little time-consuming place, it will become extremely bad.

Tsimplethread

2. Tlist class with Generics

Tsimplelist

3. The thread pool based on the

4. Commonly used string operation function function

four, practical functions : Based on the extension of the above-mentioned skills to specific use.

1. Saving parameters

Tsimpleparam

2. Scheduled Tasks

V. Skills selected according to the circumstances

1. Basic plug-in function. A. Send A message plug-in B. Keyboard mouse plug-in C. Use the DLL under the keyboard hook.

2. Operate the Web page and simulate the Web page. A. Operate IE or twebbrowse B. Read Web pages with idhttp or simulate login

A) operate ie,001 with Idhttpex Read page b)

3.DataSnap. A. Actual rest service for other program calls B. Simple three-layer

4. Use Delphi to operate the database. such as: MSSQL, Build table, write sql, write stored procedures, understand the lock, in the stored procedure with Applock and so on.

5.Windows API. Delphi is based on Windows, but many Windows features are not implemented in Delphi, which calls for the WinDOS API to be called.

Such as: VPN dialing, Win API calls up trouble, the version is still different, to learn to see MSDN, and construct that a large list of parameters

six, important but not important skills , such as: a variety of tall algorithms. We are non-programmers, please adhere to the Take doctrine, please adhere to the simple and brutal principle!

Vii. Other Skills

Modify the Delphi IDE code completion shortcut keys (change from ctrl+space to Ctrl + ALT + Space)

In short: To write less code, improve efficiency and write correctly!

Delphi Advanced Basic Skills Description

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.