Click here to Skip to main content
15,891,529 members
Home / Discussions / C#
   

C#

 
GeneralRe: compression Pin
Richard MacCutchan21-Dec-15 20:37
mveRichard MacCutchan21-Dec-15 20:37 
GeneralRe: compression Pin
jackie.398122-Dec-15 3:33
jackie.398122-Dec-15 3:33 
GeneralRe: compression Pin
Richard MacCutchan22-Dec-15 3:34
mveRichard MacCutchan22-Dec-15 3:34 
GeneralRe: compression Pin
jackie.398122-Dec-15 4:08
jackie.398122-Dec-15 4:08 
GeneralRe: compression Pin
Richard MacCutchan22-Dec-15 7:01
mveRichard MacCutchan22-Dec-15 7:01 
GeneralRe: compression Pin
jackie.398122-Dec-15 7:38
jackie.398122-Dec-15 7:38 
GeneralRe: compression Pin
Richard MacCutchan22-Dec-15 7:46
mveRichard MacCutchan22-Dec-15 7:46 
GeneralRe: compression Pin
jackie.398122-Dec-15 7:57
jackie.398122-Dec-15 7:57 
i found this code in stackoverflow:

C#
int SegmentsCreated ;
using (ZipFile zip = new ZipFile())
{
  zip.UseUnicode= true;  // utf-8
  zip.AddDirectory(@"MyDocuments\ProjectX");
  zip.Comment = "This zip was created at " + System.DateTime.Now.ToString("G") ;
  zip.MaxOutputSegmentSize = 100*1024 ; // 100k segments
  zip.Save("MyFiles.zip");

  SegmentsCreated = zip.NumberOfSegmentsForMostRecentSave ;
}


the line in bold make what i want but when i copy this code into VS get errors that i don't know how to fix it, so i try to get help to do this maybe in other way. I've made it using 7zip lib but i don't want to use external lib, i want to use .net library.

thanks.
GeneralRe: compression Pin
Richard MacCutchan22-Dec-15 21:32
mveRichard MacCutchan22-Dec-15 21:32 
GeneralRe: compression Pin
jackie.398124-Dec-15 7:20
jackie.398124-Dec-15 7:20 
GeneralRe: compression Pin
Mycroft Holmes22-Dec-15 11:57
professionalMycroft Holmes22-Dec-15 11:57 
Questionhow can i use delegate to output several param in multi-thread? Pin
smallkubi21-Dec-15 3:29
smallkubi21-Dec-15 3:29 
AnswerRe: how can i use delegate to output several param in multi-thread? Pin
OriginalGriff21-Dec-15 3:53
mveOriginalGriff21-Dec-15 3:53 
GeneralRe: how can i use delegate to output several param in multi-thread? Pin
smallkubi21-Dec-15 4:44
smallkubi21-Dec-15 4:44 
AnswerRe: how can i use delegate to output several param in multi-thread? Pin
Eddy Vluggen21-Dec-15 6:32
professionalEddy Vluggen21-Dec-15 6:32 
GeneralRe: how can i use delegate to output several param in multi-thread? Pin
smallkubi21-Dec-15 15:13
smallkubi21-Dec-15 15:13 
GeneralRe: how can i use delegate to output several param in multi-thread? Pin
Eddy Vluggen22-Dec-15 0:18
professionalEddy Vluggen22-Dec-15 0:18 
AnswerRe: how can i use delegate to output several param in multi-thread? Pin
BillWoodruff21-Dec-15 18:20
professionalBillWoodruff21-Dec-15 18:20 
QuestionOPC / Rockwell for automation problem Pin
Roberto64_Ge21-Dec-15 0:07
Roberto64_Ge21-Dec-15 0:07 
Questionc# classes methods Pin
Member 1221945620-Dec-15 14:55
Member 1221945620-Dec-15 14:55 
AnswerRe: c# classes methods Pin
User 418025420-Dec-15 15:13
User 418025420-Dec-15 15:13 
GeneralRe: c# classes methods Pin
Member 1221945620-Dec-15 15:17
Member 1221945620-Dec-15 15:17 
GeneralRe: c# classes methods Pin
OriginalGriff20-Dec-15 19:53
mveOriginalGriff20-Dec-15 19:53 
AnswerRe: c# classes methods Pin
OriginalGriff20-Dec-15 19:58
mveOriginalGriff20-Dec-15 19:58 
AnswerRe: c# classes methods Pin
BillWoodruff20-Dec-15 23:42
professionalBillWoodruff20-Dec-15 23:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.