Run Visual FoxPro applications in the cloud

Run Visual FoxPro applications in the cloud

In this new article, we will show you how to adapt your Visual FoxPro code so you can run VFP apps in the cloud with Thinfinity VirtualUI.


1. Starting the app

To run the app you have to create VirtualUI object like this:


RELEASE APP_GLOBAL

PUBLIC APP_GLOBAL

RELEASE VirtualUI

PUBLIC VirtualUI

VirtualUI=CREATEOBJECT(“Thinfinity.VirtualUI”)

VirtualUI.DevMode=.T.

VirtualUI.DevServer.Port=6080

VirtualUI.DevServer.Enabled=.T.

VirtualUI.StdDialogs=.T.

VirtualUI.Start(60)

MESSAGEBOX(“Hello”,0+64,””)



2. Register the VirtualUI’s library

Open command prompt as administrator and call VirtualUI’s dlls with the command ‘regsvr32’ like this:

regsvr32 C:\Program Files\Thinfinity\VirtualUI\bin64\Thinfinity.VirtualUI.dll

regsvr32 C:\Program Files\Thinfinity\VirtualUI\bin32\Thinfinity.VirtualUI.dll


If you are planning to use your VirtualUI integrated application within Remote Workspace, you should use the following DLLs:

regsvr32 C:\Program Files\Thinfinity\Workspace\bin64\Thinfinity.VirtualUI.dll

regsvr32 C:\Program Files\Thinfinity\Workspace\bin32\Thinfinity.VirtualUI.dll


3. Running the app

After you run the application you should see that VirtualUI’s development server will show on your system tray:



Left-Click it and hit ‘Open Web Browser’.



Now you should be able to see the app running in the desktop and in the browser.

To publish your app in the “prod” server manager you have to comment on the following lines:

VirtualUI.DevMode=.T.

VirtualUI.DevServer.Port=6080

VirtualUI.DevServer.Enabled=.T.


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

Any questions?




    • Related Articles

    • Run VB.Net software as a Web Application

      In this new article, we will show you how to adapt your Visual FoxPro code so you can run VB.Net developments in the cloud with Thinfinity VirtualUI. App example: https://www.cybelesoft.com/support/files/DemosVUI/VBNet.zip Bear in mind in this ...
    • Thinfinity VirtualUI: Integration with Different Coding Languages

      Product: Thinfinity VirtualUI Version: 3 and above Introduction Thinfinity VirtualUI is a software solution designed to easily integrate Windows-based applications with web technologies, enabling remote access through web browsers. It extends the ...
    • Thinfinity VirtualUI: Testing with Development Server

      Product: Thinfinity VirtualUI Version: 3 and above Introduction Thinfinity VirtualUI is a software solution designed to simplify Web integration for Windows-based applications. This guide will walk you through the process of getting started with ...
    • Thinfinity VirtualUI: Publishing an Application

      Product: Thinfinity VirtualUI Version: 3 and above Introduction Thinfinity VirtualUI is a software solution designed to facilitate web integration for Windows-based applications. This guide will walk you through the process of getting started with ...
    • How to set up permissions for an application in Thinfinity VirtualUI

      Product: Thinfinity VirtualUI Version: 3 and above Introduction To guarantee appropriate access for each user, it's important to set up permissions in the Application Profiles Editor found in the Thinfinity VirtualUI Server Manager. We'll cover the ...