title: Using C++ libraries inside C#
body: <p>I've written a C++ class which is built on OpenCV 3.1.</p>
  
  <p>Currently I'm trying to import this library into C# using the CLR interface.  I can successfully call C++ methods from inside C#, but if I include any OpenCV related material in the C++, the C# app crashes saying it can't load the C++ DLL or its dependencies.</p>
  
  <p>I've tried adding the OpenCV DLL as a reference in C# but VS2015 refuses to accept that (Mixing managed and unmanaged).</p>
  
  <p>Anyone have some ideas or a tutorial that is trying to do something similar?  Better yet, specifically using custom C++ code thats built on OpenCV 3.1 inside C#?</p>
  
  <p>If posting my code would help, I can do that.</p>
  
  <p>Thanks!</p>