Download Delphi XE2 Foundations - Part 3 by Chris Rolliston PDF

By Chris Rolliston

Half three of a complete consultant to the language and center non-visual libraries of Embarcadero Delphi XE2; during this half, programs, RTTI, interoperability and multithreading performance are all coated. Adopting an built-in process, the publication covers either more recent and older beneficial properties along each other. it is usually assurance of XE2's aid for Mac OS X.

Show description

Read Online or Download Delphi XE2 Foundations - Part 3 PDF

Best languages & tools books

Foundations of Constraint Satisfaction

This textbook examines the constraint delight challenge (CSP), that is a normal challenge in AI purposes. It goals to supply a complete advent to the CSP, masking theoretical, sensible and implementation matters. The publication discusses formal definitions, CSP fixing algorithms and implementation of a few of the algorithms on PROLOG.

Extra resources for Delphi XE2 Foundations - Part 3

Example text

While Variant and TValue have overlapping concerns, their purposes are not identical however: TValue is a building block of Delphi’s runtime type information (RTTI) system, and to that effect, can hold practically anything. Nonetheless, it does not support auto-conversions, where (for example) the string ‘123’ can be automatically converted to the integer 123. Variants, in contrast, can do this. On the other hand, compared to TValue, variants are much more limited about the sorts of normal type they can hold.

Dpr under Core application. • Use Project|Add New Project... twice more to create two further packages. dpk under their respective directories. • Finally, save the project group itself — the IDE should prompt you to do this anyhow if you do a File|Save All. , one level up from each of the DPK and DPR files). Configuring the output directories The second step is to configure the projects’ output directories. By default, a package is set up on the basis it should be globally available. While that is a good assumption when writing a package to be installed into the IDE, it is not so good in our case.

Sorted := True; end; Here, plugins are found on the basis their BPLs (a) have been placed in the same directory as the main executable and (b) have the word ‘Plugin’ in their file name. For each one found, an item is added to the list box, with the BPL’s full path stored in the item’s TagString property. Realign; end; end; In this code we use the list box item’s Tag property to store the package handle when loaded. The casts are to be on the safe side, since while Tag is a signed pointer-sized integer, an HMODULE (what LoadPackage returns) is an unsigned pointer-sized integer.

Download PDF sample

Rated 4.58 of 5 – based on 13 votes