O'Reilly logo

Delphi for .NET Developer’s Guide by Xavier Pacheco

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required