I have custom DLL written on c++ which importing Lua functions and other stuff, and I trying to use this dll in my project.
I tried two ways:
Import functions from unity project use DLLImport attribute, but I getting: DLLNotFoundException.
I tried to create C++\CLI wrapper, and use them in unity project, but I got “unknown namespace” errors.
I checked all the dependencies with “Dependency Walker” and tried to put all dlls (excluding KERNEL32.dll) into project build folder, editor root folder and project sln root folder, but still getting errors.
does LUA DLL depend on something that might not be present? Does it run outside of Unity (for example, did you try DllImport from just a console C# app)? Could you show us how you specified DllImport attribute on the function you’re trying to call?
As for C++/CLI: that is not supported and will not work in Unity.