Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Desktop .NET app Com Interop with VFP
Message
From
02/05/2011 12:04:51
 
 
To
02/05/2011 11:43:22
Scott Malinowski
Arizona Fox Software LLC
Arizona, United States
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01509034
Message ID:
01509042
Views:
83
>Greetings!
>
>We have a VFP 9 desktop application which actually runs over terminal services. A thrid-party company is developing an add-on .NET desktop application that needs to access/transmit data back and forth with our VFP database. I have read and actually used some of Rich Strahl's routines for VFP to .NET Com Interop, but I am thinking this one might be a little bit different. That is, because the .NET application is going to depend on the VFP Com object(s) in order to complete processing.
>
>Any thoughts on a methodology to do this? Or, it is so similar to Rick's method that I just need to become more educated on the subject <g> ?
>
>Thanks in advance!
>
>Scott Malinowski
>Premiere Educational Systems, Inc.

I do this with a .net com interop dll. Events fire in the VFP app from the .net dll via com interop (Rick's examples show how to do this) and data is passed to VFP in objects. Data is passed from the vfp app to the .net dll by calling the .net dll's methods from VFP (Rick's examples show this as well). An update in one updates the other and each can "trigger" events in the other.

Why does the .net app have to depend on the VFP com object in order to complete? Not sure what you mean by that. I think if you take the time and become more familiar with it, Rick's methods and white papers should give you all you need to know....(unless you are "slow" like me and it may be a little trial and error to get it working right :o)
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform