Installation
FoxBridge requires two files and a one-line initialization. No installers, no COM registration.
1. Copy the files
Copy the following files to your VFP project directory (or any accessible path):
| File | Description |
|---|---|
FoxBridgeNE.dll | Native .NET engine. Must be in the same folder as FoxBridge.prg or a path VFP can find. |
FoxBridge.prg | VFP public API. Load it with NEWOBJECT() or SET PROCEDURE TO. |
2. Verify .NET
FoxBridge requires .NET 8 or higher. To verify it is installed run in cmd:
dotnet --version If the command is not found, download .NET 8 from https://dot.net.
3. Initialize in your code
Include this initialization at the start of your application (or in each form that uses it):
* Opcion A: en el mismo directorio
loBridge = NEWOBJECT("FoxBridge", "FoxBridge.prg")
* Opcion B: con SET PROCEDURE TO (una sola vez al inicio)
SET PROCEDURE TO "C:MiApplibsFoxBridge.prg" ADDITIVE
loBridge = NEWOBJECT("FoxBridge") 4. Verify with Ping
Confirm the native DLL loads correctly:
loBridge = NEWOBJECT("FoxBridge", "FoxBridge.prg")
? loBridge.Ping() && debe imprimir "Pong" About the FoxBridge.prg path If FoxBridge.prg is not in the same directory as your program, pass the full path as the second parameter to NEWOBJECT():
loBridge = NEWOBJECT("FoxBridge", "C:MiApplibsFoxBridge.prg") Next: Quick Start ->