Hi!

I was wondering how I would be able to have a DLL function return processed data back to the application that invoked the function?

I have checked the various tutorials, and couldn't find any information regarding this... May be I just need to look harder?
:)
Posted on 2003-02-06 21:54:32 by Mimosa
Mimosa,

if youre thinking of to cause an existing dll to change behaviour accordingly: thats impossible

If you are making your own dll, it is trivial: just supply at least 1 parameter "by reference", not by value, that is, push its address, not its value onto the stack. Then the called function inside the dll may be able to "fill" that parameter.
Posted on 2003-02-07 01:50:50 by japheth
Mimosa,

You can try this:

<dll code>
.
.
.
mov eax,result
ret

Japheth's solution is nice!:alright:

Regards,

Vortex
Posted on 2003-02-07 02:07:16 by Vortex
It worked.... Thank you for the help! :)
Posted on 2003-02-08 01:10:38 by Mimosa