I created an x86 application with Visual Studio 2019 under Windows 7 x64 which is based on two programming languages C# and C++. I created DLLs in C++ after I imported them into the C# project from the menu: Build dependencies> Project dependencies. Not only that, but I added all the DLL dependencies in the same folder where my EXE is located. The problem is that my application works very well under Windows 7 X64 but on Windows 10 I have the HRESULT error. In windows10 i don't have visuel studio installed. it's a test machine.
An unhandled exception has occurred in your application. If you click continue. the application will ignore this error and try to continue. If you click Exit, the application will stop immediately. Unable to load UserTrack. DLL the specified module could not be found (Exception from HRESULT 0x8007007E.
I have tried looking for the dll from absolute path in DLLIMPORT function. i installed also x86: vc_redist.x86.exe and x64: vc_redist.x64.exe to fix the problem.
But Nothing help, always i get the error as above.
Any suggestion please ?