crash at Class1 c1 = new Class1(); saying : 'The specified module could not be found. (Exception from HRESULT: 0x8007007E
hello there,
I am trying to create a library of fftool so that the uwp app doesn't have to launch a process to run FFmpeg exe out of the environment and yet able to run all command of fftool. so, for that
first, I created a static lib compiling fftool c code adding all the necessary linking and include
then I created a WinRT component in c++ to connect this library to my uwp app
so, again provided all the input, link, include and then added a reference to the static library to it.
since both of them are in the same solution.
so, I did not add a reference to linker and include for the static library in WinRT component
then for the test, I created a class calling a simple funtion that I added to c manually
but now whenever I try to create an object of that test class it throws an error saying
-The specified module could not be found. (Exception from HRESULT: 0x8007007E)
and stack trace
at System.StubHelpers.StubHelpers.GetWinRTFactoryObject(IntPtr pCPCMD)
at ffmpegUWPWinrt.Class1..ctor()
at AppConsumable.MainPage.BtnTest_Click(Object sender, RoutedEventArgs e)
and this is all at runtime
while compiling and launching of the app in c# work fine.
but if I use c++ app it crashes as it launches
and also I am new to c and c++ I didn't use the c/c++ before that so I am stuck at it and unable to understand what's wrong and I tried googling it but I am unable find something
thanks