Quantcast
Channel: Questions in topic: "dllnotfoundexception"
Viewing all articles
Browse latest Browse all 201

"DllNotFoundException: Unable to load DLL 'kernel32.dll': The specified module could not be found. Error.

$
0
0
private class ThreadJasonDll { private static string DLL_LOCATION = System.IO.Path.Combine(Application.streamingAssetsPath, "ThreadJasonDll.dll"); private IntPtr pDll; public ThreadJasonDll() { Debug.Log(DLL_LOCATION); pDll = NativeMethods.LoadLibrary (DLL_LOCATION); int error = Marshal.GetLastWin32Error(); if (error != 0) { Debug.Log("LoadLibrary error: " + error); }IntPtr pInitialize = NativeMethods.GetProcAddress (pDll, "Initialize"); CallInitialize = (DllInitialize)Marshal.GetDelegateForFunctionPointer (pInitialize, typeof(DllInitialize)); IntPtr pApplyMotionInput = NativeMethods.GetProcAddress(pDll, "ApplyMotionInput");} This is the major part of the code. I am trying to access the ThreadJasonDll.dll . This project is working fine in unity and also in the .exe build. But when I took the WebGl build, I got this error. Can any one please help me. While printing the DLL_LOCATION, I am getting the correct path also. I copied that path and put it in browser. It goes to the dll location. But still I am getting this error and due to this, the major part is missing in my project.

Viewing all articles
Browse latest Browse all 201

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>