Download Delphi XE2 Foundations - Part 3 by Chris Rolliston PDF

By Chris Rolliston

Half three of a entire consultant to the language and center non-visual libraries of Embarcadero Delphi XE2; during this half, applications, RTTI, interoperability and multithreading performance are all coated. Adopting an built-in procedure, the publication covers either more moderen and older positive aspects along each other. it is usually insurance of XE2's help for Mac OS X.

Show description

Read Online or Download Delphi XE2 Foundations - Part 3 PDF

Similar languages & tools books

Programming distributed computing systems: a foundational approach

Ranging from the idea that realizing the principles of concurrent programming is essential to constructing disbursed computing structures, this e-book first offers the elemental theories of concurrent computing after which introduces the programming languages that aid boost allotted computing structures at a excessive point of abstraction.

Problem Solving and Program Design in C, Global Edition

For introductory classes in computing device technological know-how and engineering. (Learning to application with ANSI-C)

Problem fixing and software layout in C teaches introductory scholars to application with ANSI-C, a standardized, industrial-strength programming language identified for its strength and chance. The textual content makes use of broadly approved software program engineering the way to educate scholars to layout cohesive, adaptable, and reusable application resolution modules with ANSI-C. via case reports and genuine global examples, scholars may be able to envision a certified occupation in programming.

Widely perceived as an incredibly tough language as a result of its organization with complicated equipment, the 8th variation techniques C as conducive to introductory classes in application improvement. interval subject matters are geared up in accordance with the desires of newbie programmers instead of constitution, making for a good more straightforward creation to the topic. overlaying a variety of points of software program engineering, together with a heavy specialise in pointer techniques, the textual content engages scholars to take advantage of their challenge fixing abilities all through.

Additional info for Delphi XE2 Foundations - Part 3

Example text

When a package is loaded in this way, the main application can no longer use its units as normal. Instead, you have two choices: either have the package explicitly say what types it exposes via exported functions, or have the main application poll the RTTI (runtime type information) system. In the first case, a package is treated like an ordinary DLL or dylib, only without its author needing to worry about Delphi-specific types, calling conventions, and inter-module memory management. Create(TSomeForm, TSomeOtherForm); end; exports GetExportedFormClasses {$IFDEF MACOS} name '_GetExportedFormClasses'{$ENDIF}; end.

Make(@EnumValue, TypeInfo(TMyEnum), Box); To unbox a value, you generally use the AsType method as previously shown. , as a floating point number function AsInteger: Integer; function AsInt64: Int64; function AsInterface: IInterface; function AsObject: TObject; function AsString: string; function AsVariant: Variant; Where AsInteger has the same effect as AsType, so AsObject has the same effect as AsType and so on. Similar to how Make is a lower level version of From, the AsType function has some lower-level peers too: property DataSize: Integer read GetDataSize; procedure ExtractRawData(ABuffer: Pointer); procedure ExtractRawDataNoCopy(ABuffer: Pointer); function GetReferenceToRawData: Pointer; In the case of a reference type, GetReferenceToRawData will still return a pointer to the instance, even though the instance itself will be an implicit pointer already.

GetReferenceToRawData)^; WriteLn(S); //output: I love pointers end. Converting between types As such, TValue is not designed for automatically converting between types. The general rule is that if a given conversion isn’t supported implicitly in normal Delphi code, it isn’t supported by TValue. g. an enumeration. ToString; //(class 'TStringBuilder' @ 004180D0) In the class and class reference cases, the figure after the @ sign is the memory address of the object and class reference respectively.

Download PDF sample

Rated 4.33 of 5 – based on 9 votes