Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
API Help
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
API Help
Miscellaneous
Thread ID:
00329864
Message ID:
00329864
Views:
60
If am trying to access a function in a dll and I declare it as follows



** VB dec as follows
DECLARE function bipapi_search lib "bipapi.dll"(ByVal Search_String as String,recno as Long,nrecs as Long,Byval Timeout as Integer) as Integer

** My VFP Dec As Follows
decl integer bipapi_search in D:\bowker\pluswin\bipapi.dll
string,@long,@long,integer

lcSearchfor = [ti="1 & 2 Kings"]
lnrecord=9999999999
lnrecs=9999999999
lntimeout=0

? bipapi_search(lcSearchfor, @lnrecord, @lnrecs,0)

when i run this in VFP I get an Error Too Many arguments on the Function call line .

If I remove the @ symbol i get a Nasty DR Watson Acces Violation Error.

Can anybody help me ?

TIA
Fred Besterwitch, MCP

The harder you work. The luckier you get.
Next
Reply
Map
View

Click here to load this message in the networking platform