hiebeler@cs.rpi.edu (Dave Hiebeler) (04/10/90)
[ I sent out a copy of this that had been rot-13'ed accidentally. I must've bumped the wrong key when sending it from Emacs.. Hopefully, my attempt to cancel the other article was successful. ] I have worked with Unix for a couple of years. One of the useful things I have used is the ability to have a program read in a ".o" object-code file, and call a function from that file. So, a user can write a C function and compile it, and then my program can call the user's function, without the user having to recompile or re-link my program. Anyways, I'm wondering how I could go about doing this on a PC. I've heard that you can somehow read in a .COM file and call a routine from that file. Does anyone have any suggestions, or preferably, a simple example of how to do this? I'm very new to PC/DOS hacking.. I use Turbo C/Asm/debugger if it matters. I wouldn't mind having to write these external routines in assembler, but it would be great if it were possible to write a C function that could be dynamically loaded in like this. This is *extremely* important for me; any help would be *greatly* appreciated! -- Dave Hiebeler / Computer Science Dept. / Amos Eaton Bldg. / Rensselaer Polytechnic Institute / Troy, NY 12180-3590 USA Internet (preferred): hiebeler@turing.cs.rpi.edu Bitnet: userF3JL@rpitsmts "Off we go, into the wilds you ponder..."