ID: Q118745
The information in this article applies to:
The error message "Invalid function argument value, type, or count" is produced when the _WGetCursor() function is called in FOXTOOLS.FLL.
The cause of this problem has not yet been determined.
Use the FoxPro Library Construction Kit (LCK) to write an .FLL containing a function that calls the _WGetCursor() function. Instead of calling the _WGetCursor() function in FOXTOOLS.FLL, call your function, which in turn calls _WGetCursor() and returns the appropriate value.
Microsoft has confirmed this to be a problem in FoxPro version 2.6 for Windows. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
Place the following code in a .PRG file and execute the file. The error message will be produced when the _WGetCursor() function is called.
SET LIBRARY TO foxtools.fll
DEFINE WINDOW x FROM 10,10 TO 15,60
ACTIVATE WINDOW x
wh = _WonTop()
? _WGetCursor(wh)
RELEASE WINDOW x
SET LIBRARY TO
Additional reference words: FoxWin 2.60 errmsg err msg buglist2.60
KBCategory: kbprg kberrmsg kbbuglist
KBSubcategory: FxtoolLck
Last Reviewed: August 28, 1995