.NET from VFP. Without rewriting anything.
Use any .NET library directly from your existing VFP code. StringBuilder, HttpClient, List<T>, async/await — all with the object-oriented syntax you already know.
Features
Any .NET class
Instantiate any type from the .NET framework or your own DLL with loBridge.Create(). Up to 10 constructor parameters.
Generic collections
List<T> and Dictionary<K,V> with native VFP proxies. Add, Remove, Item, Count — 1-based indexing like VFP.
Static members
Access File, Math, Guid, Environment and any static class with loBridge.Static(). Methods, properties and fields.
Transparent async/await
Methods that return Task are blocked automatically. From VFP it looks like a normal synchronous call.
LoadAssembly
Load your own .NET DLLs compiled in C# or VB.NET and use their classes as if they were native VFP objects.
Overload resolution
The Binder automatically detects the correct overload. VFP only has Double; .NET may have 18 overloads of Append().
How it works
- 1Initialize FoxBridge
One line: loBridge = NEWOBJECT('FoxBridge', 'FoxBridge.prg'). No COM registration, no installers.
- 2Create .NET objects
loBridge.Create('System.Text.StringBuilder', 'Hello'). FoxBridge generates a dynamic VFP proxy and returns it ready to use.
- 3Use like VFP objects
loSB.Append('world'). loSB.ToString(). Methods, properties and events work with the dot syntax you already know.
Frequently asked questions
Do I need to know .NET to use FoxBridge?
Does it work with any .NET DLL?
Can it be used in EXE applications?
What about VFP types that don't exist in .NET?
How is .NET object memory released?
The full .NET ecosystem, from your VFP
Without rewriting anything. Without changing your IDE. All the power of .NET with the syntax you already master.
Buy now