I've been searching everywhere and can't find how to do this:
I'm trying to use an unmanaged dll in my c# code. using dependancy walker I found that I also need to include an import for kernel32.dll, msvcp120d.dll and msvcr120d.dll. At the moment I only call my dll like this
[DllImport("ExApcpp.dll", CallingConvention = CallingConvention.Cdecl)]
public extern static string cb_organise_i (int a1);
(where cb_organise_i is a function in the dll.)
I'm using xamarin and keep getting the error
[Mono] Probing '_monodroid_gref_log_delete'.
[Mono] Found as '_monodroid_gref_log_delete'.
[Mono] DllImport attempting to load: 'ExApcpp.dll'.
[Mono] DllImport error loading library './libExApcpp.dll': 'dlopen failed: library "/data/data/workex.workex/lib/./libExApcpp.dll" not found'.
[Mono] DllImport error loading library './libExApcpp.dll.so': 'dlopen failed: library "/data/data/workex.workex/lib/./libExApcpp.dll.so" not found'.
[Mono] DllImport error loading library 'libExApcpp.dll': 'dlopen failed: library "/data/data/workex.workex/lib/libExApcpp.dll" not found'.
although my dll is in the application folder. Also I don't have a file named libExApcpp.dll (I used swig and vs2013 to wrap my c++ code and make the dll)
Am I on the right lines assuming I need the other three dll's and if so how would I include/implement them?
Sorry if this is a stupid question but I've become blind to the answer.