Articles

I Love Xbase++ (ILX)
The portal for Xbase++ developers worldwide
Andreas Herdt
2 min read
Views
403
It is possible to automate the creation of MS Word documents and also to style the text. For this a Word document is created or opened via the Xbase++ COM/ActiveX layer. The Word instance is represented in Xbase++ by an object of the class AutomationObject(). The document can be manipulated via...
Andreas Herdt
7 min read
Views
1,428
Some technical background When an application is loaded, the operating system's image loader examines the import directory of the exe file. In this import directory the dll names with their functions (so-called procedure entry points) are listed, which are needed for the application. These...
Andreas Herdt
2 min read
Views
447
Problem description The Xbase++ ISAM emulation uses a native PostgreSQL sequence to calculate the next record number for append operations. Therefore the success of a DbAppend()/APPEND directly depends on the correctness of that PostgreSQL sequence. As a matter of fact the sequence can become...
Andreas Herdt
3 min read
Views
296
Background When a source file ( .prg or .arc) is compiled, then an intermediate file ( .obj or .res ) is created that is finally linked to an executable ( .exe ) or library ( .dll ). The Xbase++ compilers xpp.exe and arc.exe create the intermediates next to their source files. This behavior is...
Andreas Herdt
3 min read
Views
469
Background The PostgreSQL columns of type TEXT and BYTEA allow the storage of large binary data (e.g. PDF documents or images) up to 1GB. If such column types are used in a table their data is accessed like any other data of the record when using the Xbase++ ISAM emulation. With each...
Till Warweg
2 min read
Views
368
In a std I/O application, output occurs to the current console. The font used for outputting text into the associated window is controlled by the system and can be changed via the console properties. The following function can be used to determine the size of the font set for the window...
Jeffrey Wulf
3 min read
Views
344
By default the Xbase++ WebHandler does negotiate the content type encoding automatically. The following simple AddressService returns a Object and leaves the content negotiation up to the WebHandler and the request sending party. The great benefit of that approach is that your service interfaces...
Andreas Herdt
3 min read
Views
438
Background The HttpEndpoint can be bound to an SSL certificate but it must be available in the Windows Certificate Store. This howto article describes how to provide a certificate using the win-acme tool and the IIS web server and how to bind the HttpClient to it. On the Let's Encrypt homepage...
Till Warweg
2 min read
Views
556
Background Starting with version 13 of PostgreSQL, the default authentication method was changed from MD5 to SCRAM. This authentication method is incompatible with the pqlib client dll used by the PostgreSQL Database Engine shipping with Xbase++ (status: build 1360). As a consequence, attempting...
Jeffrey Wulf
1 min read
Views
452
Overview With associative arrays it is possible to address an element in the array not by its ordinal (numeric) but by name (character string). The Xbase++ datatype array does not support this possibility. However, objects of the class DataObject() semantically offer an identical usage, because...
Steffen F. Pirsig
3 min read
Views
489
Very often applications support multiple tenants. A financial accounting solution used by a CPA is a typical example for that. However, there are other scenarios where the ability to switch between several tenants/customers is required. The following note gives an overview about the options with...
Jeffrey Wulf
1 min read
Views
542
Rules: Avoid the need for comments, write clear, readable and self describing code instead Comments never describe the code and its syntax Use comments to compensate for your failure to express yourself in code properly. Do not write informative comments such as: // returns normalized value...