I'm using gclib 311 with VS 2015 and C#, I set the search path in gclib.cs to:
public static class LibraryPath
{
public const string GclibDllPath_ = "gclib.dll";
public const string GcliboDllPath_ = "gclibo.dll";
}
That is, the DLL should be with the application exe on the same directory, when I run the application on my machine which have also galilTolls and gclib installations the application is working as expected with no problem.
But, when I run it on a clean machine, without previous galil software, I get this error:
System.DllNotFoundException: Unable to load DLL 'gclibo.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
at gclib.DllGVersion(StringBuilder ver, UInt32 ver_len)
at gclib.GVersion()
What should be the right way to distribute the DLL without the need to install any other software?
troym_galil on 08/19/2016 - 09:45
I had been in contact with you over email but basically the GclibDllPath_ is an absolute path. You will need to tell your program the absolute path to find the dlls.
Thanks,