Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Incorrect int value when passing to fll
Message
From
17/06/2003 22:42:53
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Incorrect int value when passing to fll
Miscellaneous
Thread ID:
00801029
Message ID:
00801029
Views:
42
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
Next
Reply
Map
View

Click here to load this message in the networking platform