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

Declaring API function

Status
Not open for further replies.

andrej67

IS-IT--Management
Jan 23, 2007
14
SI
I'm having trouble declaring function from DLL in VFP. Declaring of variables and functions, that use "regular" datatypes (such as double, integer, string) parameters went ok. I'm not sure how to declare functions, that use variant (like vb datatype ANY) parameters.

declare VarFunc in abc.dll integer (or string) VarParam

isn't working and i dont know, what type can i use for VarParam parameter. Any sugestions?
 
declare it as string (in most cases that must work), but it all depends what the function expects.

Borislav Borissov
VFP9 SP1, SQL Server 2000/2005.
MVP VFP
 
... and hope for the best ?
As a start yes, but i'll need a reliable solution for this problem. Hopefully, the names of variables will be selfexplaining.
 
I had this problem once. I ended up going to DLL's vendor, who agreed to change the data type from a variant to a string (after I had pointed out the huge potential Visual FoxPro market that they were excluding from their product).

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Mike, this wasn't AdvantageDatabase, right?
They don't have VFP listed for their API, but since they do have VB on their list, i thought, VFP should work too. If they had not released API for VFP, it's not likely, that they will, not matter what the VFP potential. But their API gives me access to the NTX indexes.
Thanks anyway,
Andrej
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top