You can find an introduction in the concept of DLLs and in implementing an engine in other languages in the manual under "Other Languages", "Engine Implementation".