Files
UnrealEngineUWP/Engine/Source/ThirdParty/DotNetZip/Examples/C++/CreateZipfile.cpp
Wes Hunt cefa87e4b7 Ionic.zip code import
* Moving Ionic.Zip source code into UE4 from UE4 source.
* Only one left should be in Binaries/DotNET.
* Moving TPS info to source location.
* Deleting several copies that were floating around.

Assembly Resolve Refactor
* Added AssemblyUtils.InstallAssemblyResolver to handle resolving of known assemblies that may not exist in the same folder as the referencing assembly.
* This is now installed by UAT and UBT, which should handle all needs to load Ionic.Zip and RPCUtility.exe from scripts that install into subfolders of Binaries/DotNET.
* Other assemblies can be added easily as necesary, centralizing the location where this is handled.
* Removed AssemblyResolver from RPCUtilHelper as UBT handles it automatically now.
* Removed Ionic.Zip references from projects that weren't really using it.
#codereview:ben.marsh

[CL 2646891 by Wes Hunt in Main branch]
2015-08-06 15:55:44 -04:00

39 lines
765 B
C++

// CreateZipFile.cpp
//
// Example: creating a zip file from C++.
//
// This code is part of DotNetZip.
//
//
// Last saved: <2010-June-01 10:32:15>
//
using namespace System;
using namespace Ionic::Zip;
int main(array<System::String ^> ^args)
{
Console::WriteLine(L"Hello World");
Console::WriteLine(L"Creating a zip file from C++/CLI using DotNetZip...");
ZipFile ^ zip;
try
{
zip = gcnew ZipFile();
zip->AddEntry("Readme.txt", "This is the content for the Readme.txt entry.");
zip->AddFile("CreateZipFile.cpp");
zip->Save("test.zip");
}
finally
{
//zip->~ZipFile();
delete zip;
}
Console::WriteLine(L"Press <ENTER> to quit.");
Console::ReadLine();
return 0;
}