title: Use zlib in a Window Runtime Component in Visual Studio 12
body: <p>I created a Windows Store App c# in Visual Studio 12. There, I need to use native C++ code that uses minizip and zlib.</p>
  
  <p>To use the native C++ code I created a Windows Runtime Component (<a href="http://msdn.microsoft.com/en-us/library/windows/apps/hh755833.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/windows/apps/hh755833.aspx</a>). It works. I compiled zlib in Visual Studio (<a href="https://stackoverflow.com/questions/10507893/libzip-with-visual-studio-2010">libzip with Visual Studio 2010</a>), but I don't know how can I use </p>
  
  <pre><code>#include &lt;zlib&gt;
  </code></pre>
  
  <p>in a cpp file in my Windows Runtime Component Proyect.</p>
  
  <p>I saw that I can install zlib.net NuGet with the Manager, in VS. But the same...</p>
  
  <pre><code>// Class1.cpp
  #include "pch.h"
  #include "Class1.h"
  
  using namespace MyWindowsRuntimeComponent;
  using namespace Platform;
  
  #include &lt;zlib.h&gt; //cannot open source file zlib
  
  Class1::Class1()
  {
  }
  
  bool Class1::unzip(char* file) {
      unzFile zip = unzOpen(file); //need to call this function
      //...
  }
  </code></pre>
  
  <p>Thanks!</p>