﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » Updates and Information » Samples and Solutions  » .NET Application with embedded VFP EXE</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 05 May 2026 04:09:58 GMT</lastBuildDate><ttl>20</ttl><item><title>.NET Application with embedded VFP EXE</title><link>http://forum.strataframe.net/FindPost5903.aspx</link><description>There are many developers making the move from Visual FoxPro to .NET.&amp;nbsp; During this process many times, there is the need to perform the migration in steps rather than all at once.&amp;nbsp; This entails that the .NET environment and the legacy VFP application operate simultaneously.&amp;nbsp; This sounds like an impossible feat, but can be done with relative ease using StrataFrame and the techniques found within this sample. &lt;P&gt;This sample shows how to run both .NET and VFP forms within the same MDI environment.&amp;nbsp; This sample is intended to be a starting point giving you many ideas and a foundation on which to build this platform.&lt;/P&gt;&lt;P&gt;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.&amp;nbsp; 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.&amp;nbsp; Additionally, you will have to make a very simple change to your base form (also shown in the sample).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Requirements For Sample&lt;BR&gt;&lt;/STRONG&gt;There are several requirements that must be met before running this sample.&amp;nbsp; First, StrataFrame must be installed.&amp;nbsp; Below is a list of the additional components for the VFP side.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Visual FoxPro 8 or 9&lt;/LI&gt;&lt;LI&gt;&lt;A href="http://www.dart.com/ptwsk.aspx"&gt;Dart PowerTCP UDP ActiveX Control &lt;/A&gt;(You can download their trial activeX version for testing)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Last, when running (or rebuilding the VFP source), the netvfpsample.exe file (VFP app) must reside in the same location as the .NET program.&amp;nbsp; You can see how the VFP app is automatically launched within the EnsureLegacyApp() method in the MyMainForm source in .NET.</description><pubDate>Wed, 17 Jan 2007 12:42:20 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>