Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing Parameters to FLL Problem
Message
De
19/11/2001 19:34:10
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00583705
Message ID:
00583717
Vues:
25
>	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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform