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