Click here to Skip to main content
15,885,244 members
Home / Discussions / C#
   

C#

 
AnswerRe: EventInfo.GetRaiseMethod() - anyone made it work? Pin
leppie11-Nov-05 7:07
leppie11-Nov-05 7:07 
QuestionCreating Quick Launch like Applications Pin
jgallen2311-Nov-05 5:54
jgallen2311-Nov-05 5:54 
AnswerRe: Creating Quick Launch like Applications Pin
Dwayner7911-Nov-05 8:22
Dwayner7911-Nov-05 8:22 
GeneralRe: Creating Quick Launch like Applications Pin
Colin Angus Mackay12-Nov-05 3:27
Colin Angus Mackay12-Nov-05 3:27 
GeneralRe: Creating Quick Launch like Applications Pin
jgallen2313-Nov-05 18:19
jgallen2313-Nov-05 18:19 
QuestionDumping the DataGrid into a txt file Pin
zaboboa11-Nov-05 5:29
zaboboa11-Nov-05 5:29 
AnswerRe: Dumping the DataGrid into a txt file Pin
whizzs11-Nov-05 7:26
whizzs11-Nov-05 7:26 
QuestionProblems with SharpZipLib Pin
Ricardo Mendes11-Nov-05 5:20
Ricardo Mendes11-Nov-05 5:20 
Hi. I am using SharpZipLib in order to compress a text file. The compression works fine, but when I try to decompress, sometimes I get an error "Error baseInputStream GZIP header, first byte doesn't match". Below is the code I use to decompress:

GZipInputStream gzipInputStream = new GZipInputStream(new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read));
string tempPath = Path.GetTempFileName();
FileStream fileOutputStream = new FileStream(tempPath, FileMode.Open, FileAccess.Write, FileShare.None);

while(gzipInputStream.Available > 0)
{
byte b = (byte)gzipInputStream.ReadByte();
if(gzipInputStream.Available > 0)
fileOutputStream.WriteByte(b);
}

gzipInputStream.Close();
gzipInputStream = null;

fileOutputStream.Close();
fileOutputStream = null;

File.Copy(tempPath, path, true);
File.Delete(tempPath);




Does anyone know what I'm doing wrong?
Thanks
QuestionCall CHM content specific Pin
Dwayner7911-Nov-05 4:35
Dwayner7911-Nov-05 4:35 
AnswerGot it Pin
Dwayner7911-Nov-05 8:02
Dwayner7911-Nov-05 8:02 
QuestionExcel Range object Pin
zaboboa11-Nov-05 4:25
zaboboa11-Nov-05 4:25 
AnswerRe: Excel Range object Pin
Dwayner7911-Nov-05 8:15
Dwayner7911-Nov-05 8:15 
QuestionHow to get dependancies of SQL Functions? Pin
pubududilena11-Nov-05 1:37
pubududilena11-Nov-05 1:37 
AnswerRe: How to get dependancies of SQL Functions? Pin
Colin Angus Mackay11-Nov-05 4:17
Colin Angus Mackay11-Nov-05 4:17 
QuestionWindow Form like Google Desktop ??? Pin
faviochilo11-Nov-05 1:28
faviochilo11-Nov-05 1:28 
QuestionWhich function is like "getch()" in Console App? Pin
Lane Yu11-Nov-05 1:15
Lane Yu11-Nov-05 1:15 
AnswerRe: Which function is like "getch()" in Console App? Pin
J4amieC11-Nov-05 1:56
J4amieC11-Nov-05 1:56 
AnswerRe: Which function is like "getch()" in Console App? Pin
Febret11-Nov-05 1:57
Febret11-Nov-05 1:57 
GeneralRe: Which function is like "getch()" in Console App? Pin
J4amieC11-Nov-05 2:32
J4amieC11-Nov-05 2:32 
GeneralRe: Which function is like "getch()" in Console App? Pin
Febret11-Nov-05 2:40
Febret11-Nov-05 2:40 
GeneralRe: Which function is like "getch()" in Console App? Pin
Lane Yu11-Nov-05 3:35
Lane Yu11-Nov-05 3:35 
GeneralRe: Which function is like "getch()" in Console App? Pin
J4amieC11-Nov-05 4:14
J4amieC11-Nov-05 4:14 
GeneralRe: Which function is like "getch()" in Console App? Pin
Febret11-Nov-05 4:18
Febret11-Nov-05 4:18 
GeneralRe: Which function is like "getch()" in Console App? Pin
Lane Yu11-Nov-05 4:27
Lane Yu11-Nov-05 4:27 
GeneralRe: Which function is like getch() in Console App? Pin
Rob Philpott11-Nov-05 5:15
Rob Philpott11-Nov-05 5:15 

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.