Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing an array from VB to VFP DLL

Status
Not open for further replies.
Oct 21, 2002
22
US
Hi. I have written a small program in VFP 7.0 and compiled it into a DLL. The main method in this DLL requires several parameters...

Some as type string (search criteria)
Some as long (number of records to return) and
Some as array (results from table searches)

This DLL works wonderfully from a front end written in VFP. However, when I try to call it from a Visual Basic front end I don't get the results I would expect. The parameters are passed successfully to the dll and the method executes correctly. I can verify this by looking at the temporary tables used to produce the results. The data contained in the variables in the VB program are not changed. It is as if they were passed by value, rather than by reference.

I am not a VB programmer by any stretch of the imagination and I am wondering if I am doing something wrong. Or maybe I have missed something in the VFP DLL? Can anyone help me with this?

Thanks,
Gwen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top