ERROR : Unable to load DLL 'tcl84.DLL'
I am using 'DllImport("tcl84.Dll")' in c# dot net and i have put tcl84.Dll in Windowssystem32tcl84 dll. and still im facing the error that
"Unable to load DLL 'tcl84.DLL': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"
Now what should i do?
Possible solution 1
This could be a 32/64-bit issue. If you have a 32-bit application running on a 64-bit Windows, the DLLs will be loaded from C:WindowsSysWOW64
instead of C:WindowsSystem32
.
So you could try to make the application Any CPU
or copy it to bindebug
instead of a system folder.
Also if your application is running in 64-bit mode (x64 or Any CPU
or a 64-bit Windows), but the DLL is 32-bit only, it won't load either, as you can not use a 32-bit DLL in a 64-bit application. You then need to compile your application as 32-bit explicitly.
Possible solution 2
The DLL itself requires other DLLs that are not available on your system. Make sure that all dependencies for the DLL are resolved.