Where should I place the DLL file when I use DLLImport?

I know that on Windows forms, you just need to put the file in the Debug folder, but it seems to be completely different in monodev for Android. I tried to place the file from the resource folder, adding the reference paths, setting the help folders from the project settings, etc., but I still won’t succeed. I always get a DLLNotFoundException .

In addition, below is the code to import the dll file

 [DllImport("testing.dll", EntryPoint = "Testing_Open", ExactSpelling = false, CallingConvention = CallingConvention.Cdecl)] public static extern uint Testing_Open(HINSTANCE hInstance); 
+4
source share
1 answer

You cannot DllImport.dll for Mono for Android because it is a Linux based system and not a Windows based system. You will need DllImport for the shared Linux library (* .so).

+3
source

All Articles