Page 1 of 1

call compiled functions

Posted: Tue Apr 21, 2009 5:46 am
by stanko51
Hello,

How can i call a compiled function in my code? How to know the address to execute?

I know window's dll use some kind of export table, but i don't know how it actually works when the application is run. i'd need some advice on how to set this up.

Thank you for your help.

Re: call compiled functions

Posted: Tue Apr 21, 2009 7:18 am
by madeofstaples
Though you may choose to implement it however you like in your own operating system, this and this take a look at how it's done in windows (and a little bit of info on linux as well).

this may also be helpful.

Also, how you actually call functions in dynamically loaded libraries requires that you understand the necessary calling convention, which is trivial if you know the function prototypes (e.g, as they appear in their respective library's header files).

Re: call compiled functions

Posted: Wed Apr 22, 2009 2:01 am
by stanko51
thank you, that 's helpful :D