Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Call VFP dll from C#
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00900733
Message ID:
00901199
Views:
21
PMFJI,
I was wondering, have you compared the COM-based approach of updating VFP with calling a stored procedure in VFP? I am currently working on a small project where I use the latter approach (for the reasons you mentioned such as DML of VFP). My concern was when I was deciding on which way to go is that if you use COM approach and you hit a bug you would have to re-register the updated DLL on the web server. Has that ever been a problem for you?

>I do this all the time to leverage the strong data manipulation tools of VFP. Simply add a COM reference to the DLL (I browse to it from the add reference dialog). .NET will automatically build a COM interop wrapper around the DLL for you. Then you can use it as you would any other class assembly. You may want to register the DLL by using the regsvr32 command.
>
>
>>If I create a VFP DLL how can I use it from C# code?
>>
>>Thanks
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform