SUMMARY
The FOXTOOLS.FLL library is used to call Windows API functions from
within FoxPro. However, FOXTOOLS.FLL cannot call a .DLL that requires
more than nine parameters. If an attempt is made to call a .DLL with
more than nine parameters, FoxPro will return the "Invalid Function,
Argument, Type or Count" error message.
The following example demonstrates this problem. It calls a function
named "Beep" in a .DLL named "Mydll.dll" with ten parameters. When the
CallFn() function that is part of FOXTOOLS.FLL is issued, FoxPro
returns the error message described above:
SET LIBRARY TO SYS(2004)+"FOXTOOLS.FLL"t!
test='TEST'
handle=REGFN("beep", "CCCCCCCCCC", "", "c:\msvc\example\dlls\mydll.dll")
test=CALLFN(handle,test,test,test,test,test,test,test,test,test,test)
SET LIBRARY TO