Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invoking C# dll from within fox
Message
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
MS SQL Server
Miscellaneous
Thread ID:
01060548
Message ID:
01060572
Views:
14
>Can a component written in C# (Winform) be called from within vfp7? Are there any issues? IT decision-makers in our company wants to do that, but nobody here has ever done it before. Any comments appreciated.

Yes and no <g>...

Yes you can do it, but it requires some special work to make sure you get the threading right. The issue is that .NET cannot easily create DCOM (EXE) COM server - only DLL servers and DLLs run in process, so you end up with Windows Message Loop issues.

THere's more basic information here:

http://west-wind.com/weblog/posts/705.aspx

And there should be FoxPro Advisor article coming out shortly that talks in more detail about multi-threaded .NET COM components and comsuming them in VFP.
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform