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