IonicWind Software

IWBasic => General Questions => Topic started by: H.Brill on December 22, 2006, 10:45:03 AM

Title: CALL
Post by: H.Brill on December 22, 2006, 10:45:03 AM
hello,
i want call a function in memory, like CALL(functionsadress, param1....paramx).
is there a way in the API ? the callwindowproc - function only has 4 parameters,
but i need more.

Title: Re: CALL
Post by: Ionic Wind Support Team on December 22, 2006, 11:39:10 AM
Just use an indirect function.  You have to declare it first.

declare mymemfunc(a as int, b as float, c as word)

Then tell Emergence to call an address using that template.

!<mymemfunc>functionsaddress( 1, 2.2, 3)

You can use as many parameters as you want, I used three just for demonstration purposes.
Title: Re: CALL
Post by: H.Brill on December 23, 2006, 02:31:04 AM
thank you,
i will try it.