call compiled functions

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
stanko51
Member
Member
Posts: 32
Joined: Fri Mar 27, 2009 6:58 pm

call compiled functions

Post 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.
madeofstaples
Member
Member
Posts: 204
Joined: Thu Apr 12, 2007 8:15 am
Location: Michigan

Re: call compiled functions

Post 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).
Some people are offended by the verifiable truth; such people tend to remain blissfully unencumbered by fact.
If you are one of these people, my posts may cause considerable discomfort. Read at your own risk.
stanko51
Member
Member
Posts: 32
Joined: Fri Mar 27, 2009 6:58 pm

Re: call compiled functions

Post by stanko51 »

thank you, that 's helpful :D
Post Reply