Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing an array by reference to a .NET .dll
Message
From
08/04/2008 10:24:24
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Title:
Passing an array by reference to a .NET .dll
Miscellaneous
Thread ID:
01309001
Message ID:
01309001
Views:
71
I've pretty much read up on how to get a Visual FoxPro app and a .Net (in my case, Visual Basic 2008) .dll to talk to each other, and I'm all set to do so. But I just remembered that there's one more potential fly in the ointment that may prove troublesome.

In one of my method calls, there is a pass by reference of an array - I need to send in an array, get it filled with information, and get it sent back to the calling application. Now, I just remembered that VFP's arrays are unmanaged memory, while .NET's arrays are instances of System.Array. Will appropriate adjustment be made for that? Or do I need to rethink my strategy - come up with some with some other way to passing back that list (it's one dimensional) of information?

Any thoughts?

David
David M. Stowell
Ravenslake Consulting
Chicago, Illinois

e-mail: davidstowell@ravenslakeconsulting.com
Next
Reply
Map
View

Click here to load this message in the networking platform