#pragma implementation
#endif
-#include <wx/wxprec.h>
+#include "wx/wxprec.h"
#ifdef __BORDLANDC__
#pragma hdrstop
#if wxUSE_FS_ZIP
#ifndef WXPRECOMP
-#include <wx/wx.h>
+#include "wx/wx.h"
#endif
#include "wx/filesys.h"
bool wxZipFSHandler::CanOpen(const wxString& location)
{
wxString p = GetProtocol(location);
- return (p == "zip");
+ return (p == wxT("zip") );
}
wxString left = GetLeftLocation(location);
wxInputStream *s;
- if (GetProtocol(left) != "file") {
+ if (GetProtocol(left) != wxT("file")) {
return NULL;
}
s = new wxZipInputStream(left, right);
if (s && (s -> LastError() == wxStream_NOERROR)) {
return new wxFSFile(s,
- left + "#zip:" + right,
+ left + wxT("#zip:") + right,
GetMimeTypeFromExt(location),
GetAnchor(location));
}
m_Archive = NULL;
}
- if (GetProtocol(left) != "file") {
+ if (GetProtocol(left) != wxT("file")) {
return wxEmptyString;
}
while (match == wxEmptyString)
{
unzGetCurrentFileInfo((unzFile)m_Archive, NULL, namebuf, 1024, NULL, 0, NULL, 0);
- for (c = namebuf; *c; c++) if (*c == '\\') *c = '/';
+ for (c = namebuf; *c; c++) if (*c == wxT('\\')) *c = wxT('/');
fn = namebuf;
if (fn.Last() == wxT('/')) {
fn.RemoveLast();