Search code examples
c#c++uwpc++-winrtwinrt-component

'The specified module could not be found. after adding c++ dll in WinRt component and using WinRt in UWP


I have created a c++ library then added this to the WinRt successfully, setting all the linker input directory, the header file directory in visual studio for WinRt, and and referencing this winrt .winmd file in the uwp, now accessing the runtime class in the WinRt is causing issue enter image description here

here are all three projects


Solution

  • After wrapping my c++ library(.lib) in the winrt, and after referencing the winrt in the uwp still one thing was missing i need to copy the that C++ Dll in the executables of the the uwp which will be under the project folder \bin\x86\Debug\AppX