I imported the dll into my code:
[DllImport("dll.dll", CharSet = CharSet.Ansi)]
private static extern int function(String pars, StringBuilder err);
I was wondering if the function works, but it is not inside the project, and not inside the Debug or Release folders. That is, "dll.dll" should not be available because it is not in the current project folder, however it is available. Now I want to know the full full path to the dll used at runtime, but I don’t know how to get it.
source
share