Running Delphi Generated Assemblies under Mono (on Linux)
Now we will get back to Delphi for .NET. Start a new console application by selecting File, New, Other, Console Application in the Delphi for .NET Projects folder. You will be presented with a blank project.
You will notice that Delphi includes the following uses clause by default:
Uses Sysutils;
Although this is desirable for a Win32 application, this will cause runtime errors on Mono. Many of Borland’s VCL classes contain references to Win32 specific classes and native imports and therefore cannot be run on Mono. Remove the reference to SysUtils and avoid the urge to add other VCL units to the example.
The console application consists of the following: text based menu, request for user ...
Get Delphi for .NET Developer’s Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.