> 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 <fll.h>
FOXFUN( foo ) {
// ...
}
BEGIN_FOXTABLE
DECLARE_FOXFUN( foo, 1, "?" )
END_FOXTABLE