Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Incorrect int value when passing to fll
Message
De
17/06/2003 22:42:53
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Incorrect int value when passing to fll
Divers
Thread ID:
00801029
Message ID:
00801029
Vues:
44
Hi Everyone,

What im trying to do is programatically save the Modify Command I currently have open. The only way I have seen how to do this so far is to create a FLL calling the _EdSave function.

I have retrieved the window handle using the _GetPort() function (i think) and thats all well and good. My problems start when I am trying to pass the window handle number back to another function. All I am doing at the moment is passing an integer and return the same value, yet I can't seem to even do that : )The function and definition looks like this:
void FAR SaveFile(ParamBlk FAR *parm)
{
	WHANDLE wh;

	wh = parm->p[0].val.ev_long;

	_RetInt(wh, 20);

	return;
}

FoxInfo myFoxInfo[] = {
   {"SaveFile", (FPFI) SaveFile, 1, "I"}
};
When I call the SaveFile function with a parameters of 100, the return value is never 100, always something like -8321543425.

Thanks,

Michael
A fish this fine deserves to be a fish nugget styled chunklet.
- Fry
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform