Autor Beitrag
Stoffel1984
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 219

Win NT, Win 2000
D6 Prof
BeitragVerfasst: So 28.12.03 19:08 
Hallo,

hab etwas im Forum gestöbert und eigentlich nicht das passende gefunden. Ich möchte mit meinem Programm ZIP Dateien erstellen. Kein Zlib, kein RAR einfach ne normale ZIP Datei die zum Programm Winzip kompatibel ist und damit auch gelesen werden kann. Gibts ne DLL oder sowas für dieses Problem?

Danke schonmal,

Stoffel
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: So 28.12.03 22:36 
Soweit ich weiß, ist zlib zu WinZIP kompatibel, so heißt einfach nur die Bibliothek
Stoffel1984 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 219

Win NT, Win 2000
D6 Prof
BeitragVerfasst: So 28.12.03 23:33 
ich schaus mir mal genauer an!
danke für die info!

stoffel
Stoffel1984 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 219

Win NT, Win 2000
D6 Prof
BeitragVerfasst: Fr 02.01.04 16:50 
Hallo,

hab mit folgendem Code versucht eine Datei zu zippen:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
procedure TForm1.Compress(InputFileName, OutputFileName: string);
var InputStream, OutputStream: TFileStream;
  CompressionStream: ZLib.TCompressionStream;
begin
  InputStream:=TFileStream.Create(InputFileName, fmOpenRead);
  try
    OutputStream:=TFileStream.Create(OutputFileName, fmCreate);
    try
      CompressionStream:=TCompressionStream.Create(clMax, OutputStream);
      try
        CompressionStream.CopyFrom(InputStream, InputStream.Size);
      finally
        CompressionStream.Free;
      end;
    finally
      OutputStream.Free;
    end;
  finally
    InputStream.Free;
  end;
end;


Öffne ich diese Datei nun mit WinZIP erscheint die Meldung das es sich um kein gültiges Archiv handelt! Was mache ich falsch?

Danke für eure Hilfe,

Stoffel