Article ID: 164742
Article Last Modified on 12/3/2003
DECLARE INTEGER TestFn IN Test16.dll INTEGER,INTEGER
*** The error will occur on executing the next line of code
? TestFn(1,1)
*** Removing the asterisk on the next line would resolve the error
*** that occurs on the first RegFn() call below.
* CLEAR DLLS
SET LIBRARY TO HOME()+"FoxTools.FLL"
*** The error will occur on executing the next line of code
*** because it is attempting to call the TestFn() function registered
*** above with the DECLARE-DLL command
handle = RegFn(TestFn(),"II","I","Test16.DLL")
* The correct way to register the function is...
handle = RegFn("TestFn","II","I","Test16.DLL")
ReturnValue = CallFn(handle, 1, 1) && Note this works now
Keywords: kbprogramming kbprb KB164742