Issues loading DLL
I'm trying to load a C++ DLL and use it's function
I can use the DLL function if i use
I need it to be dynamic and load the path from
here is a code for a button i use for testing:
GetEngineVersion to get the engine version to find out installed version of the game. I need it to be loaded from Properties.Settings.Default.InstallPath, "LS3DF.dll". I get an error 126 and can't fix it.I can use the DLL function if i use
[DllImport] but that only uses fixed path. I need it to be dynamic and load the path from
InstallPath setting. i'm using .NET Framework 4.7.2, platform is set to x86here is a code for a button i use for testing: