Thanks, but I see that the script calls a function and then the DLL returns a value.
I want my DLL to call a function that is on my script and not the script call a function that is on my DLL.
Edit: Just read Cookie's post. I think I'm going to use the 1.A option (for a begging at least)
Btw, what do you mean by "a real ActiveX dll" ?