Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing Parameters to FLL Problem
Message
From
19/11/2001 19:34:10
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00583705
Message ID:
00583717
Views:
24
>	void ThisValue(ParamBlk *parm)
>	{
>		//_BreakPoint();
>		_RetVal(&parm->p[0].val);
>	}
>
> When I run the C++ debugger, the "parm" parameter looks like garbage

Make sure that all functions you enter in the FoxTable are __fastcall (or set the calling convention for your project options to __fastcall globally).

Unfortunately the <pro_ext.h> header is rather broken or you would not be able to stick pointers to the wrong kind of functions into the FoxTable. If you plan on doing a lot of FLL stuff might want to invest a couple of minutes in fixing <pro_ext.h> and writing a set of macros that take care of the messy details.

On my system a mini FLL source file looks thusly (the ParamBlk* parameter is implicitly named by the macro so it does not show up):
#include &lt;fll.h&gt;

FOXFUN( foo )  {
   // ...
}

BEGIN_FOXTABLE
   DECLARE_FOXFUN( foo, 1, "?" )
END_FOXTABLE
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform