Is there a reason why the code below cannot find the dll that IS in the directory as shown (there is also the h file with the same name)
[file,path] = uigetfile('C:\Users\Public\PI\PI_Programming_Files_PI_GCS2_DLL\*.dll');
[path,name,ext] = fileparts(libname)
Error using loadlibrary
Could not find file libname.h.
Error in loadlibrary
(here are the library and header files)