In this quick tutorial, we’ll learn how to integrate a PowerBuilder application with the Thinfinity VirtualUI Libraries to run your PowerBuilder apps on any web browser HTML5 compliant.
It is a straightforward process that involves just a couple of steps, so it won’t take you longer than 30 mins to enable your PowerBuilder App to be published.
First of all, we need to create the OleObject, connect it to VirtualUI, and call the Start().
This OleObject variable needs to be part of the Global Variable; otherwise, the application will crash.
To do this, just right-click on your “open” event, click edit, declare a Variable, and make this a Global Variable.
Now we need to link this OleObject with VirtualUI and call the Start()
To do this, we just need to type these lines right at the beginning of our code:
- VirtualUI = CREATE OLEObject
Now we just have to build this application, load it to the Thinfinity VirtualUI Server Manager, and you’ll be ready to go.