0

I am getting error code 126 while dynamically loading the C++/WinRT DLL library into an MFC module.

I have included "Microsoft.VCRTForwarders.140" for this purpose. The DLL is loading without any issue in other C++ applications (eg: C++ console app).

The DLL has no other dependency issue.

The Visual Studio 2019 output window is showing loaded and unloaded info of the DLL at the same time:

'xxxx.exe' (Win32): Loaded 'abc.dll'. Symbols loaded.
'xxxx.exe' (Win32): Unloaded 'abc.dll'

How can I solve the issue?

I tried to get the dependencies with Dependency Walker. But the application cannot be started with it. It needs other configurations before running.

James Z
  • 12,104
  • 10
  • 27
  • 43
Hari
  • 19
  • 3

0 Answers0