"Eelco Akker" <
[email protected]> wrote in message
Dear John,
Could you provide me some source samples, howto extract a file on CF
I also recompiled the ZipLib.
But I'm stil getting a missingmethod exception.
This is my source (VB .NET)
Sure Eelco!
Here is my C# snippet
zFile = new ZipFile(@"/Program Files/ZipTestCFCS/z.zip");
ZipEntry MyEntry = zFile.GetEntry("1.txt");
Stream s = zFile.GetInputStream(MyEntry);
int length = Convert.ToInt32(MyEntry.Size);
byte[] ba = new byte[length];
s.Read(ba, 0, length);
Encoding ascii = Encoding.ASCII;
char[] asciiChars = new char[ascii.GetCharCount(ba, 0, ba.Length)];
ascii.GetChars(ba, 0, ba.Length, asciiChars, 0);
return new string(asciiChars);
I did not do anything particularly creative for compiling the lib.
Just created a new project for a Pocket PC lib, drag-dropped Zip and
Checksums folders from the windows explorer to the solution and
compiled.
I can mail you the source of the project and the binary if you want.
That shouldn't violate GPL.