Language Examples

The project group Aggregation.bpg contains two projects: AggregationClient.dpr and AggregationServer.dpr. The server is a DLL that implements a COM object. It performs aggregation by using the new interface implementaion by delegation mechanism. The COM object itself implements one intrface. Another class implements a different interface. However, the client is unaware that there are two objects. The first interface obtained will generate the second interface by a QueryInterface call. This new language feature makes such aggregated COM object applications much easier to write.

DefaultParamsEg.dpr contains a simple example of routines taking default (optional) parameters.

DynamicArrayEg.dpr contains a simple example of a dynamic array that can be resized and its contents displayed in a listbox.

Int64Eg.dpr contains a simple example of the Int64 data type, showing its largest and smallest value.

MethodOverloadingEg.dpr contains a simple example of method overloading and global routine overloading.