If I know a function name of a dll file and this dll file is loaded by a exe program,Is it posible to call this function in another program? thanks
Posted on 2002-12-18 06:54:13 by pingyu
sure... dll's are designed for that purpose. you got the dll name, fine, pass it
to LoadLibrary... you got the function-name, great, pass it to GetProcAddress.
you can also statically link to this dll if you have a hold of the required header
files and function specifications.
Posted on 2002-12-18 07:27:51 by mob
I never did that - statically link!
How to do that?
Posted on 2002-12-18 08:10:04 by david
uh maybe that was the wrong word... don't know
it's like when you're declaring the libs and headers in your source.
in my opinion statically linked = linked via import directory that's all.
if you're loading the dll's on your own that's called dynamic linking i
think... nothing new i guess
Posted on 2002-12-18 09:19:07 by mob
I was thinking of a lib containing functions, but no main-method or something like that.
If I use a function in my code from that library, the code of that function is inserted into my code.
I read the c-runtime libraries are like that, in the iczelion-tutorial about dll's.

Posted on 2002-12-19 17:49:01 by david