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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DLL Parameters

Status
Not open for further replies.

prustie

Programmer
Aug 6, 2001
34
GB
Hi

I am trying to use a Post Code look up application using a DLL.

I have managed to get the functions declared correctly and the data file opened.

However when I try to match a Post Code the function is returning an internal error and so unfortunately is the error function.

I think that it is down to one of the parameters which is defined in the documentation as:

char hits If >0 hits are found during the search, will contain a string representation (decimal) of the number of hits (suitable for conversion via atoi()). Cannot be NULL. Should point to an array of at least 8 characters.

Can anyone tell me how I define this parameter?

Thanks

Malcolm P
 
Malcolm,
From VFP, I'd try:
DECLARE mydll ..., string @, ...

lcHits = Space(10)
=mydll(..., @lcHits, ...)

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top