Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Drawing library for VFP
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00829167
Message ID:
00830464
Vues:
23
Entiendo. Gratias.


>Hi, Thomas.
>
>>One more question, Martin, if you don't mind.
>>
>>I read the article you referred to. It describes creating a CustomControl in VS.NET and putting that on a WinForm. To use the drawing classes in VFP, what would I do? Create an ActiveX control in VS.NET and put it in a FoxPro window? Or create a separate application and start it from VFP? There needs to be some communication between the VFP application and the drawing. At a minimum, the VFP application needs to know which elements where added to the drawing and the name of the file where the drawing is saved.
>
>Integrating the GUI into VFP is not possible, as you can't build an ActiveX in .NET, but you can make both components communicate trough COM interop. You have to see if its better to you to expose some class of the .NET drawing app as a COM component, or add reference to a VFP COM from it.
>
>Using COM Interop everything reduces to simple COM communication. For what you're mentioning, maybe you can limit to passing simple strings. If you need to pass more complex data, you can use VFP 8 XmlAdapter to pass it from VFP cursors to XML, and then pass it as a string to your .NET component. There, you'll receive it as an ADO DataSet. All this is very simple and it works great.
>
>You can take a look at several examples on VFP-.NET interop here:
>
>http://msdn.microsoft.com/vfoxpro/
>
>http://www.levelextreme.com/Magazine/April2002/Page18.asp
>http://www.levelextreme.com/Magazine/April2002/Page14.asp
>http://www.levelextreme.com/Magazine/July2002/Page16.asp
>
>Enjoy,
Thomas M. Lamm
Bradbury & Associates
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform