Make your functions in the DLL the way you would in your program script. Then use LoadLibrary() to get the DLL, and GetProcAddress() to get the function from the DLL. (Note that you will have to use the mangled function name found in the DLLs makefile.)