+ // close the input stream by releasing the pointer to it, do this
+ // before closing the output stream so that the file can be replaced
+ in.reset();
+
+ // you can check for success as follows
+ bool success = inzip.Eof() && outzip.Close() && out.Commit();
+
+\end{verbatim}
+
+The \helpref{smart pointer}{wxscopedptr} types {\em wxZipEntryPtr}
+and {\em wxFFileInputStreamPtr} can be created like this:
+
+\begin{verbatim}
+ #include <wx/ptr_scpd.h>
+ wxDEFINE_SCOPED_PTR_TYPE(wxZipEntry);
+ wxDEFINE_SCOPED_PTR_TYPE(wxFFileInputStream);