If you create a dll that adheres to the C Application Binary Interface (ABI), you can dynamically link to it from either a C++ or a Delphi Application.
It is advisable that you do the the following:
- Use only C or C style code, do yourself a favour and surround the module with
#ifdef __cplusplus
extern "C"
{
//header file
}
#endif //__cplusplus
This guarantees that the code compiles into the C ABI
it is advisable to make the functions __stdcall
Compile the function as a dll
from here you should be able to link to the dll in the same way that Delphi can link to any windows DLL. (I can't remember what needs to be done from the Delphi side)