.NET Application with embedded VFP EXE
 
Home My Account Forum Try It! Buy It!
About Contact Us Site Map
StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      


.NET Application with embedded VFP EXEExpand / Collapse
Author
Message
Posted 01/17/2007 12:42:20 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 3:24:00 PM
Posts: 3,733, Visits: 3,926
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.

  Post Attachments 
DotNetWithEmbeddedFoxProSample.exe (93 views, 175.58 KB)

Post #5903
« Prev Topic | Next Topic »

Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 3:25am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.047. 11 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.