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