Dynamically load DLL with automatic unloading of conflicting DLLs

Share:

Description

Dynamically load DLL with automatic unloading of conflicting DLLs

Usage

1
loadDLL(func, cfunction = "derivs")

Arguments

func

result from funC(), contains the information about the DLL name to be loaded

cfunction

character, denoting the C function name.

Details

If the C function name is already part of another loaded DLL, the corresponding DLL is unloaded and the desired func DLL is loaded instead.