.NET Application with embedded VFP EXE


Author
Message
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
There are many developers making the move from Visual FoxPro to .NET.  During this process many times, there is the need to perform the migration in steps rather than all at once.  This entails that the .NET environment and the legacy VFP application operate simultaneously.  This sounds like an impossible feat, but can be done with relative ease using StrataFrame and the techniques found within this sample.

This sample shows how to run both .NET and VFP forms within the same MDI environment.  This sample is intended to be a starting point giving you many ideas and a foundation on which to build this platform.

Keep in mind that you are going to have to make some minor changes to your VFP environment in order to make this entirely successful.  These changes include removing menus and status bars and creating a UDP class (included in the sample) that creates the line of communication between .NET and VFP.  Additionally, you will have to make a very simple change to your base form (also shown in the sample).

Requirements For Sample
There are several requirements that must be met before running this sample.  First, StrataFrame must be installed.  Below is a list of the additional components for the VFP side.

  1. Visual FoxPro 8 or 9
  2. Dart PowerTCP UDP ActiveX Control (You can download their trial activeX version for testing)

Last, when running (or rebuilding the VFP source), the netvfpsample.exe file (VFP app) must reside in the same location as the .NET program.  You can see how the VFP app is automatically launched within the EnsureLegacyApp() method in the MyMainForm source in .NET.

Attachments
DotNetWithEmbeddedFoxProSample.exe (717 views, 175.00 KB)
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search