I tried to use DotNetZip with C++/CLR But I found everyfile i downloaded contain no .h file, in the example code, there is "using namespace Ionic::Zip;"
How can I get that to work in my code?
Using DotnetZip with Visual Studio C++/CLR
1.4k Views Asked by r1cebank At
2
There are 2 best solutions below
0
schlebe
On
Another solution that don't need to use Visual Studio GUI is to add directly a #using directive in each CPP source file that uses Ionix.zip.
Example:
#using <Ionic.Zip.dll>
using namespace Ionic::Zip;
If using namespace is not used, #using is interesting to document which sources are using Ionix.Zip. If using namespace is used, it is more interesting to put this directive in Project's reference as proposed by JaredPar.
Related Questions in .NET
- Does compiler optimize operation on const variable and literal const number?
- What is the point of definnig Asp.net Intrinsic Objects In different places and what is the different betwen them?
- Deleting Orphans with Fluent NHibernate
- IOrderedEnumerable to vb.net IOrderedEnumerable Conversion
- What is this namespace ITypeOfObjectsBoundToListBox ? Couldn't find it
- .net rest service with JSON string and consumed with java client
- What is best way to check if any of the property of object is null or empty?
- Telerik's WPF RadColorPicker NoColorText property not working
- Possible consequences of duplicate ProgId for different classes
- How are multiple requests to Task.Run handled from a resource management standpoint?
- Optimizing C++ call from C#
- Make a per-web-application object available to Web API and SignalR controllers
- System.ComponentModel.DataAnnotations.Schema namespace conflict
- LINQ Except/Distinct based on few columns only, to not add duplicates
- Not displaying content by its URL string - absolute urls
Related Questions in VISUAL-STUDIO-2010
- How would I be able to use a file in visual studio project on any computer?
- Which is the most advantageous strategy for creating a tweaked Visual Studio Project Template?
- ASP.NET textbox textchange with same text input
- windows phone emulator of visual studio 2010
- Reference to an object magically disaprears? STRANGE
- Implementing a custom header bar for chromiumembedded
- Aldebaran Nao robot simulator without a real robot
- windows form application to work with Oracle without installing Oracle client
- Referenced DLL is not found when running application from VS
- Records won't update in datagridview
- Writing to text file with StreamWriter. File used by another process
- Double templated function overload fails
- Make input to Web Service field optional not required
- How to update label from callback function in code behind?
- display .NET code error instead of HTTP 500
Related Questions in VISUAL-C++
- I want to be able to use 4 different variables in a select statement in c ++
- llvm headers do not compile under msvc 2013
- VC++ .net: Functionality from managed DLL is not exported
- Add a picture to Picture Control in a dialog box (error RC2108: expected numerical dialog constant)
- Within a .vcxproj file what are the possible values for the <ConfigurationType> and what do those values mean?
- converting string to a double in visual c++ by parsing
- How to integrate opencv C++ codings with windows application?
- Create string with ESC characters
- What does the thing between "class" and the class name in VC++ mean?
- How to assign (Root)Folder ID in C++? Wherein, those files and folder under it would have the same ID as the RootFolder
- How to convert CString to long? VC++
- How to initialize a String^ *
- How to correctly implement methods of a class returning "this" in Managed C++?
- Non-managed referenced code strangely, "magically" changes its state for no reason when wrapped in managed
- Windows application using libusb: runtime error due to mutex lock
Related Questions in C++-CLI
- How can I specify the ASP.NET probing path for automatic C++/CLI appdomains?
- How to assign (Root)Folder ID in C++? Wherein, those files and folder under it would have the same ID as the RootFolder
- How to initialize a String^ *
- Non-managed referenced code strangely, "magically" changes its state for no reason when wrapped in managed
- VC++/CLI: How to prevent an unmanaged object from being destroyed when it goes out of scope?
- Is FreeHGlobal() required to free unmanaged string passed in a function?
- C++ Generalize delegates
- PInvoke vs CLI wrapper, C++ functionality to C#
- Hide some methods in ref class
- Unable to load dll after it was signed
- Override C++/CLI functions
- AccessViolationException - When calling Botan::LibraryInitializer
- How to correctly do operator overloading in C++/CLI?
- msclr is not being used
- How to - SHA1 hash of plaintext using SHA1CryptoServiceProvider in C++/CLI?
Related Questions in DOTNETZIP
- how to make a normal zip file for users in a web application using C#?
- DotNetZip Extract Folder & Contents based on folder comment
- Convert DotNetZip ZipFile to byte array
- DotNetZip download works in one site, not another
- How to add Ionic.Zip.dll in c#.net project and use it to create a zip from folder?
- DotNetZip extracting files (empty but still filename) if password wrong
- Cannot read that as a zip file using DotNetZip 1.9
- DotNetZip unable to zip a huge number of entries
- zip directory with dedicate childfolders
- Issue with Returning Epplus spreadsheets with an Image in .zip file using DotNetZip
- How to add a folder to a folder when creating a zip file in asp using Ionic.Zip
- Add a .dll source to use classes
- Using DotnetZip with Visual Studio C++/CLR
- control file structure of a zip archive in FSharp
- Problem with extracting files with DotNetZip. It doesn't extract files. what's the problem?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You need to add a reference to the DotnetZip DLL. Once the reference to the DLL is added the compiler will process the metadata in the DLL and make the types and methods available to you in the same way it does by processing a header file. To add a reference do the following