[futurebasic] Re: Update on Navigation services

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 1998 : Group Archive : Group : All Groups

From: Joe <locality@...>
Date: Fri, 2 Oct 1998 22:20:18 -0400
>couldn't you get round this be calling your FN to call the code
>like this:

That's a pretty good idea... i don't think it would work exactly like 
that because I can't put assembler in a for/next loop that messes with 
the stack, but something like that could keep people from having to write 
a whole bunch of assembler when converting libraries...

One thing that's in the UPP is a list of all the FN's parameters, so this 
could be disected and used to figure out the parameters, then something 
like this could work:

LOCAL FN CallUniversalProc (theUPP&,FirstParam&)
  '---> Fancy asm I'll write someday...

END FN

Then you could write simple wrapper functions that would look like this:

LOCAL FN NavOpen (OpenStrPtr&,SomeOtherStuff%)
  FN CallUniversalProc (gNavOpenUPP&,@OpenStrPtr&)
END FN

and that would work I think so long as the parameters in the list were 
declared in the right order and were the right sizes. I'll see what I can 
come up with sometime this weekend. It's not hard, just tricky because 
alot of this depends on how exactly FB passes its parameters.


Joe K.