When functions of variable arguments are implemented. the three dots as in 
printf(const char*str, ...) tells the compiler not to do any parsing of 
arguments but simply pass all arguments as a block of memory on the stack 
pointed to by str. However this is intercepted by Amibroker's wrapper codes 
that is reinforcing the ArgsTable and NumArg protocol. I reckon if you copy all 
your arguments as a single block of memory pointed to by a char pointer and 
make Args.string = charptr and use the CallFunction with this 1 argument, The 
printf on the other side may be waiting for it.
Let us know if this work
Havent tried it myself though.
/Paul.
--- In [email protected], "Julian" <juliangoods...@...> wrote:
>
> How do you call this function from the ADK?
> 
> SiteInterface.CallFunction("printf", ?, ?);
> I get invalid number of arguments.
> 
> Is there another way to write to the Interpretation window?
> 
> Jules.
>


Reply via email to