Articles

I Love Xbase++ (ILX)
The portal for Xbase++ developers worldwide
Till Warweg
3 min read
Views
586
Background The Update Manager in the Xbase++ Workbench usually provides a seamless update experience; after clicking "Download and Install", the update process usually runs through without further user interaction. However like all processes, it can fail. This article provides some background...
Andreas Herdt
1 min read
Views
599
For an overview how COM/ActiveX components can be used from Xbase++ refer to the Xbase++ help ActiveX Overview, expecially to the section Reacting to COM/ActiveX events. Here you can find a working sample how to react to the MS Word quit-event.
Andreas Herdt
4 min read
Views
1,405
Introduction Email providers such as Google GMail allow authentication of the Smtp and Pop3 client via the OAuth2 security protocol. Furthermore, it is foreseeable that sooner or later other authentications will no longer be allowed. Google has already announced this step. The OAuth2 security...
Pat France
1 min read
Views
663
Sometimes your application may experience run-time errors such as "error while reading a file" during DbSkip() or DbSeek() operations. These errors often occur in the following scenarios: large number of concurrent users (>= 15) large index expressions large index files (> 500Mb) In these...
Andreas Herdt
6 min read
Views
1,154
Introduction This article assumes knowledge of how to use the Asset Manager of the Xbase++ Workbench. You will find an introduction to the Asset Manager of the Xbase++ Workbench in the article Xbase++ Workbench Asset Management. The Xbase++ OAuth2 asset implements the protocols for the OAuth2...
Andreas Herdt
3 min read
Views
1,481
Introduction Xbase++ comes with so-called assets. You can consider an asset as a reference implementation. The idea of assets is to formalize the packaging of libraries, frameworks, etc. beyond the Xbase++ core product featureset. In practice, assets are there to clean up the project chaos and...
Andreas Herdt
2 min read
Views
704
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,822
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
723
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
568
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
730
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
617
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
664
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
1,084
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
848
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
793
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
817
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
834
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...