Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing Output parameters back from Foxpro to Dot Net
Message
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
01250281
Message ID:
01250422
Views:
17
Hi Viv. Thanks for your reply.

I changed the calling routine to your suggestion but got a complier
error message in dot net
argument '2' should not be passed with the 'ref' keyword.

I then tried to change the VFP routine parameter line to:
FUNCTION MyRoutine(param1 as String,ref param2 as String)
by inserting the -->ref <--- keyword but it gives a complier error.

Any ideas ??
Regards,
Gerard



>
>MyVfpDll(MyInputParam,ref MyOutputParam)
>
>
>>I have a VFP DLL thats working fine being called from within a Dot Net App, and am passing in a parameter as in:
>>string MyInputParam;
>>MyInputParam = "100"
>>MyVfpDll(MyInputParam)
>>..this works great.
>>
>>I also want to pass an Output paramater as in
>>string MyOutputParam
>>MyOutputparam = "Blank Now"
>>MyVfpDll(MyInputParam,MyOutputParam)
>>...at this stage MyOutPutparm should have something different
>>
>>However, even though MyOutputParam gets changed in the VFP dll,after returning from the DLL, it has not changed in .Net.
>>
>>Anybody know if theres something else I need to do ?
>>Regards,
>>Gerard
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform