mmaitre314 / MediaCaptureWPF

Camera preview in WPF Desktop apps using WinRT MediaCapture
http://mmaitre314.github.io/MediaCaptureWPF
Apache License 2.0
52 stars 26 forks source link

CapturePreview.Native.dll couldn´t be loaded on a fresh installed Win 8.1 - x64 machine, please help! #2

Open MichiSpahr93 opened 9 years ago

MichiSpahr93 commented 9 years ago

Hi, i hope you can help me out!

It seems that trying to open the C++-Projects of your Source in Visual Studio 2015 doesn´t work for some reason. (Only possible when (re)installing VS 2013).

I even couldn´t get the executable (build in VS 2013) to run on a machine without Visual Studio 2013 installed. Am I missing importand dependencies, that comes with the VS installation routine?

Thanks in advance!

mmaitre314 commented 9 years ago

That feels like a VClib issue. Did VS pop up a dialog to update the C++/CLI compiler when opening the solution?

vc

I opened the solution in VS2015 and was able to build and run the app. I have both VS 2013 and 2015 installed with C# & C++ compilers.

MichiSpahr93 commented 9 years ago

Thanks for your quick reply! As you have VS 2015 AND 2013 installed on your machine everything works fine! If you now uninstall VS 2013 (keep VS2015) you´ll run into my exact problem. (To your question: The popup didn´t occure, as VS2015 is able to load the projects, when vs 2013 is installed. You can see it in the Solution Explorer in VS 2015: Next to the project folders of the C++-Projects, it says "(Visual Studio 2013)".

MichiSpahr93 commented 9 years ago

I´ve also tried to run your project as it is on a machine without any VS installed. (MS Surface Pro 3, Win 8.1 Pro). I took the Test-App´s output folder "Debug" and copied it to the tablet. Unfortunately the app crashes on startup.

rb0135 commented 8 years ago

I'm having the same issue (I only have VS 2015), except I do get the option update VC++ Compiler and Libraries. I upgrade them, but then the only problem I have is that I get "Error CS0246-The type or namespace name 'CapturePreviewNative' could not be found (are you missing a using directive or an assembly reference?) in CapturePreview.cs, even after trying a full rebuild.

Is it due to being in VS2015, same issues with the VC++ that this would occur?

vijay180396 commented 4 years ago

i thing you must rebuild your project