How to Take Your Delphi Application to the Web

How to Take Your Delphi Application to the Web

Take your software written in Delphi to web, in minutes!

In this article, we will show you how to adapt your Delphi application, Windows-based, so you can run it in the cloud (as if it was 100% HTML5) with Thinfinity VirtualUI.
If you’re new to VirtualUI, you should start reading the product description.
If you are ready to convert your Win32 apps written in Delphi into a pure web app, let’s start!
Below you’ll find the link to download the example app: https://www.cybelesoft.com/support/files/DemosVUI/VCLFileTest.zip
A previous setup of Thinfinity® VirtualUI is required. Click here for further instructions about how to install and register Thinfinity VirtualUI.

Transform Your Legacy Delphi App into HTML5

First, we will see how to start the app within the development environment.
1. Open Delphi.
2. Open the application’s project.
3. Add the VirtualUI_AutoRun unit to the ‘Uses’ clause of the project source file. This unit will typically be located in the C:\Program Files (x86)\Thinfinity\VirtualUI\dev\Delphi folder.
  1. program MyApp;

  2. uses
  3. Windows,
  4. Forms,
  5. VirtualUI_AutoRun,
  6. MyApp.Main in MyApp.Main.pas' {Form1};

  7. {$R *.res}

  8. begin
  9. Application.Initialize;
  10. Application.CreateForm(TForm1, Form1);
  11. Application.Runend.

4. Compile the program and run it in debug mode.

You will see this message:

 

If you press the ‘Start Web Browser’ button, a web browser will open pointing to the application. The application will also open in desktop mode.
Notes
You may need to register a trial license for the VirtualUI Development Server, if you need help with this point contact us.

5. Alternatively, choose to not show the message and observe on the Windows tray bar that the Thinfinity VirtualUI Development Server icon will appear.

 

6. Right-click on the icon, and after that click on the ‘Open Web Browser’ menu.
A Web browser window will open and your application will be running inside.



Now you can build the .exe of the app and add it to VirtualUI’s server manager.

If you have any further inquiries or need additional support, please do not hesitate to reach out to us. Our team is always available to help address any questions or concerns you may have.

    • Related Articles

    • How to Run a .NET Application in a Web Browser

      Overview Note Pre-requisites: To proceed with this tutorial, you may need to register a trial license for the VirtualUI Development Server, Learn how to do it in this article. Now you are ready to get started. Let’s take your program to the cloud! ...
    • How to Take Your PowerBuilder Application to the Web

      Adopt Thinfinity VirtualUI, and migrate your PowerBuilder application to the web without rewriting the whole code. In this quick tutorial, we’ll learn how to integrate a PowerBuilder application with the Thinfinity VirtualUI Libraries to run your ...
    • How to Publish an Application in Thinfinity VirtualUI Server

      Product: Thinfinity VirtualUI Version: 3 and above Introduction This step-by-step tutorial will guide you through the process of virtualizing your applications and making them accessible from any web browser using Thinfinity VirtualUI. Get ready to ...
    • How to Take Your VB6 Application to the Web

      While some discuss if Microsoft Visual Basic 6.0 is still active, we agree with Tim Anderson’s opinion (click here to read the full article): “VB will stick around for a while. It is still the macro language of Microsoft Office – and yes, this is ...
    • How to Take Your WinDev Application to the Web

      Did you know that you can integrate any WinDev application with Thinfinity VirtualUI, and publish it on the Web or Cloud in no time? If you are a WinDev developer or inherit a WinDev application, you don’t have to migrate your project to a new ...