Revision [330]
This is an old revision of ioFindExternalFunctionIn made by JohnMcIntosh on 2008-10-22 03:10:04.
void *ioFindExternalFunctionIn(char *lookupName, void *moduleHandle)
Parms:
lookupName char * to function name
moduleHandle magic number that identifies the module
return:
entry address of the function, later we jump to that address hoping to execute code, or zero
From: Interpreter
Why:
Need to load entry point of function for later use in a procedure call
Responsibility:
must return zero, or a valid address of executable code.
MacIntosh
os-9/OSXCarbon
copy of the unix code
Cocoa:
TBD
iPhone
Not supported
Unix
invokes dlsym() returns the address of the code or data location specified by the null-terminated character string symbol. Which libraries and bundles are searched depends on the handle parameter.
Windows
Simple, GetProcAddress
BUGS