PRB: General Protection Fault When Using FOXTOOLS.FLLLast reviewed: April 29, 1996Article ID: Q106704 |
The information in this article applies to:
SYMPTOMSA general protection (GP) fault occurs when you are using FOXTOOLS.FLL.
CAUSERegFn() or CallFn() is incorrectly declared. The argument type and return argument type must be the same; otherwise, a general protection (GP) fault may possibly occur.
RESOLUTIONMake the argument type and return argument type the same. For example, the following function is incorrectly declared:
SET LIBRARY TO SYS(2004)+'FOXTOOLS.FLL' x=REGFN('GetDriveType','I','C') y=CALLFN(x,1)To correct the problem, modify the function as follows:
SET LIBRARY TO SYS(2004)+'FOXTOOLS.FLL' x=REGFN('GetDriveType','I','I') y=CALLFN(x,1) MORE INFORMATIONFOXTOOLS.FLL is a library that is supplied with FoxPro for Windows. FOXTOOLS.FLL allows FoxPro programs to call any Windows DLL functions that meet the following requirements:
RegFn() - registers a function and the arguments it takes CallFn() - calls a registered functionRegFn() and CallFn() have the following syntax:
RegFn(FunctionName, ArgTypes, ReturnType, DLLName) returns FnHandle CallFN(FnHandle, Arg1, Arg2, ....) returns a value REFERENCESMicrosoft Windows Software Development Kit (SDK), "Programmer's Reference, Volume 2: Functions," pages 350-354, 785 FOXTOOLS.WRI located in the C:\FOXPROW\GOODIES\FOXTOOLS subdirectory WINDOWS.H located in the C:\C700\INCLUDE subdirectory
|
Additional reference words: FoxWin 2.50 2.50a 2.50b FOXTOOLS GPF dynamic
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |