473,406 Members | 2,705 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

communicate between VFP 9 app and a VB 2005 app

im trying to create a vfp app that can talk to a vb 2005 app to launch forms

basically, i want to tell the vfp app to launch a form when they select an
option from the vb menu that hasnt been converted to vb yet...

any suggestions???
Jun 1 '07 #1
3 1867
Hi Brad,

If you were using VFP to open a VB form you would create the form in a class
library, reference it in VFP, and then use
oForm = CreateObject("VBLibrary.VBForm") ; oForm.Show

If you're going the other way and opening a VFP form from a menu click in a
VB app, it seems like you should be able to use similar code.

--
Cindy Winegarden
ci***@cindywinegarden.com
VFP OLE DB: http://msdn2.microsoft.com/en-us/vfoxpro/bb190232.aspx
VFP ODBC: http://msdn2.microsoft.com/en-us/vfoxpro/bb190233.aspx


"Brad" <Br**@discussions.microsoft.comwrote in message
news:68**********************************@microsof t.com...
im trying to create a vfp app that can talk to a vb 2005 app to launch
forms

basically, i want to tell the vfp app to launch a form when they select an
option from the vb menu that hasnt been converted to vb yet...

any suggestions???


Jun 1 '07 #2
thanks for the reply....

let me be a little more clear

1) we have a legacy app (in vfp 9)
2) we are starting on vb 2005 app to replace it
3) we want to be able to call the vfp forms in vfp code from the vb app
until their converted to .net

so far...i hase created an vfp automation server app

i can call it from vb

i can tell it to run a form that is apart of it

now im trying an additional step of having the automation server call an
..app file which isnt working....

my idea was to create app files with groups of screens in them and call the
app from the vfp server, but i am stuck getting error calling .init....

can an automation server only call automation server apps???
Jun 1 '07 #3
Hi Brad,

A VFP .APP file is compiled code that can only be run from inside the VFP
IDE or can be called by a VFP .EXE file, which has code added to make it
able to be executed against the VFP runtime files by themselves.

The correct way to do what you want is to compile the code as a "Win 32
executable / COM server (exe)" or as a "Single-threaded COM server (dll)"
(or Multi-threaded).

As far as instantiating an object from a Fox DLL in VB.NET, and then using
the Fox DLL to instantiate another object from a second Fox DLL, I did an
experiment (wrote a text file instead of instantiating a form) and was
successful with a VB.NET project instantiating an object from Fox DLL #1
which instantiated an object from Fox DLL #2, which also wrote a text file
to verify its existence.
--
Cindy Winegarden
ci***@cindywinegarden.com
VFP OLE DB: http://msdn2.microsoft.com/en-us/vfoxpro/bb190232.aspx
VFP ODBC: http://msdn2.microsoft.com/en-us/vfoxpro/bb190233.aspx


"Brad" <Br**@discussions.microsoft.comwrote in message
news:9E**********************************@microsof t.com...
thanks for the reply....

let me be a little more clear

1) we have a legacy app (in vfp 9)
2) we are starting on vb 2005 app to replace it
3) we want to be able to call the vfp forms in vfp code from the vb app
until their converted to .net

so far...i hase created an vfp automation server app

i can call it from vb

i can tell it to run a form that is apart of it

now im trying an additional step of having the automation server call an
.app file which isnt working....

my idea was to create app files with groups of screens in them and call
the
app from the vfp server, but i am stuck getting error calling .init....

can an automation server only call automation server apps???

Jun 2 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Rob R. Ainscough | last post by:
I'm having a bizarre problem with a web application that used to work fine (about 2 days ago) -- from within VS 2005 if I select Build from Debug configuration, it would start to compile and go...
9
by: tsung-yu | last post by:
Hello any expert, I has a vb.net program. For user requirement, I need to run and communicate an old DOS execution file. But, how to run and communicate a DOS program in a VB.NET program?...
6
by: Mike9900 | last post by:
How can I connect my .NET app which use remoting to communicate over internet, 2 instance of the same app? My app is already done using .NET Remoting. I am wondering if to change them to WCF or...
0
by: Lemune | last post by:
Hi all. Sorry that maybe i have post the same question for three times, it because i don't see my post for about 6 hours, so i think maybe my previous post is lost on connection error. I'm...
2
by: Lemune | last post by:
Hi all. I'm trying to build an application that will communicate with web server. My application (in C# 2005) will be communicated with some web application (using PHP). For example, my desktop...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.