Click here to Skip to main content
15,845,598 members
Home / Discussions / C#
   

C#

 
GeneralRe: compression Pin
Richard MacCutchan21-Dec-15 21:37
mveRichard MacCutchan21-Dec-15 21:37 
GeneralRe: compression Pin
jackie.398122-Dec-15 4:33
jackie.398122-Dec-15 4:33 
GeneralRe: compression Pin
Richard MacCutchan22-Dec-15 4:34
mveRichard MacCutchan22-Dec-15 4:34 
GeneralRe: compression Pin
jackie.398122-Dec-15 5:08
jackie.398122-Dec-15 5:08 
GeneralRe: compression Pin
Richard MacCutchan22-Dec-15 8:01
mveRichard MacCutchan22-Dec-15 8:01 
GeneralRe: compression Pin
jackie.398122-Dec-15 8:38
jackie.398122-Dec-15 8:38 
GeneralRe: compression Pin
Richard MacCutchan22-Dec-15 8:46
mveRichard MacCutchan22-Dec-15 8:46 
GeneralRe: compression Pin
jackie.398122-Dec-15 8:57
jackie.398122-Dec-15 8: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 22:32
mveRichard MacCutchan22-Dec-15 22:32 
GeneralRe: compression Pin
jackie.398124-Dec-15 8:20
jackie.398124-Dec-15 8:20 
GeneralRe: compression Pin
Mycroft Holmes22-Dec-15 12:57
professionalMycroft Holmes22-Dec-15 12:57 
Questionhow can i use delegate to output several param in multi-thread? Pin
smallkubi21-Dec-15 4:29
smallkubi21-Dec-15 4:29 
AnswerRe: how can i use delegate to output several param in multi-thread? Pin
OriginalGriff21-Dec-15 4:53
mveOriginalGriff21-Dec-15 4:53 
GeneralRe: how can i use delegate to output several param in multi-thread? Pin
smallkubi21-Dec-15 5:44
smallkubi21-Dec-15 5:44 
AnswerRe: how can i use delegate to output several param in multi-thread? Pin
Eddy Vluggen21-Dec-15 7:32
professionalEddy Vluggen21-Dec-15 7:32 
GeneralRe: how can i use delegate to output several param in multi-thread? Pin
smallkubi21-Dec-15 16:13
smallkubi21-Dec-15 16:13 
GeneralRe: how can i use delegate to output several param in multi-thread? Pin
Eddy Vluggen22-Dec-15 1:18
professionalEddy Vluggen22-Dec-15 1:18 
AnswerRe: how can i use delegate to output several param in multi-thread? Pin
BillWoodruff21-Dec-15 19:20
professionalBillWoodruff21-Dec-15 19:20 
QuestionOPC / Rockwell for automation problem Pin
Roberto64_Ge21-Dec-15 1:07
Roberto64_Ge21-Dec-15 1:07 
Questionc# classes methods Pin
Member 1221945620-Dec-15 15:55
Member 1221945620-Dec-15 15:55 
AnswerRe: c# classes methods Pin
User 418025420-Dec-15 16:13
User 418025420-Dec-15 16:13 
GeneralRe: c# classes methods Pin
Member 1221945620-Dec-15 16:17
Member 1221945620-Dec-15 16:17 
GeneralRe: c# classes methods Pin
OriginalGriff20-Dec-15 20:53
mveOriginalGriff20-Dec-15 20:53 
AnswerRe: c# classes methods Pin
OriginalGriff20-Dec-15 20:58
mveOriginalGriff20-Dec-15 20:58 
AnswerRe: c# classes methods Pin
BillWoodruff21-Dec-15 0:42
professionalBillWoodruff21-Dec-15 0: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.