I think that what the dlopen() will do, from looking at examples, I have to.. (kinda simplified..)
handle = dlopen(<filename>, <flags>); // Open whatever file is appropriate..
lib_archive_ptr = dlsym(handle, "lib_archive"); // Get the pointer address for the always-there function. Then...
(*lib_archive_ptr)(); // Execute the function at memory address I got above.
In a nutshell, that works for me. I can't do that within the Informix 4GL, of course, so I just have to create a different C function that will open the file and find the function and make sure it loads up before returning control to the Informix stuffs..
Thanks! :>
Me.
_________________________
Mike 'Fox' Morrey
128BPM@124MPH. Love it!
2002 BRG Mini Cooper