Click here to Skip to main content
15,887,297 members
Home / Discussions / C#
   

C#

 
GeneralShow Snap Grid In Designer Mode of Internet Explorer Pin
gxuqin13-Feb-03 22:51
gxuqin13-Feb-03 22:51 
Questionhow can i convert all the text in a listbox to a string array Pin
jtmtv1813-Feb-03 17:15
jtmtv1813-Feb-03 17:15 
AnswerRe: how can i convert all the text in a listbox to a string array Pin
Furty13-Feb-03 18:52
Furty13-Feb-03 18:52 
GeneralRe: how can i convert all the text in a listbox to a string array Pin
Anonymous13-Feb-03 18:57
Anonymous13-Feb-03 18:57 
GeneralRe: how can i convert all the text in a listbox to a string array Pin
Furty13-Feb-03 19:03
Furty13-Feb-03 19:03 
Generaldvd reading Pin
ahf13-Feb-03 8:18
ahf13-Feb-03 8:18 
GeneralRe: dvd reading Pin
Daniel Turini13-Feb-03 8:33
Daniel Turini13-Feb-03 8:33 
GeneralRe: dvd reading Pin
ahf13-Feb-03 9:26
ahf13-Feb-03 9:26 
as I said, it does not do any processing it just times how long it takes to read the whole file. there's nothing inside the while.. so buffering doesn't help.
What I'm trying to say is that this C# code


FileStream f = new FileStream(fl,FileMode.Open, FileAccess.Read, FileShare.None,16384);
while (0!=f.Read(ba,0,16384))
{
//DO NOTHING JUST READ AGAIN
}

is much slower than this C (++) code

fh = _open( fname, _O_BINARY | _O_RDONLY )) == -1 )
while (!_read( fh, buffer, nbytes) <= 0 ){
//DO NOTHING JUST READ AGAIN
}

the question is.. why?
GeneralRe: dvd reading Pin
Furty13-Feb-03 10:17
Furty13-Feb-03 10:17 
GeneralRe: dvd reading Pin
ahf13-Feb-03 11:12
ahf13-Feb-03 11:12 
GeneralRe: dvd reading Pin
ahf13-Feb-03 11:26
ahf13-Feb-03 11:26 
GeneralRe: dvd reading Pin
Furty13-Feb-03 18:55
Furty13-Feb-03 18:55 
GeneralRe: dvd reading Pin
ahf13-Feb-03 21:24
ahf13-Feb-03 21:24 
GeneralRe: dvd reading Pin
ahf13-Feb-03 21:42
ahf13-Feb-03 21:42 
GeneralRe: dvd reading Pin
Heath Stewart14-Feb-03 11:15
protectorHeath Stewart14-Feb-03 11:15 
GeneralA simple ADO.NET and table design question Pin
DionChen13-Feb-03 5:42
DionChen13-Feb-03 5:42 
GeneralRe: A simple ADO.NET and table design question Pin
SimonS13-Feb-03 20:28
SimonS13-Feb-03 20:28 
Generaldatagrid column width Pin
endforward13-Feb-03 3:33
endforward13-Feb-03 3:33 
GeneralRe: datagrid column width Pin
A.Wegierski14-Feb-03 2:43
A.Wegierski14-Feb-03 2:43 
GeneralFirstly Hi to everyone :-) 2nd......... Pin
AndyBrew13-Feb-03 3:21
AndyBrew13-Feb-03 3:21 
GeneralRe: Firstly Hi to everyone :-) 2nd......... Pin
Ayyaz13-Feb-03 5:42
Ayyaz13-Feb-03 5:42 
GeneralRe: Firstly Hi to everyone :-) 2nd......... Pin
A.Wegierski14-Feb-03 2:26
A.Wegierski14-Feb-03 2:26 
GeneralRe: Firstly Hi to everyone :-) 2nd......... Pin
Jim Stewart14-Feb-03 6:34
Jim Stewart14-Feb-03 6:34 
GeneralNeed help on Intranet Web App Pin
TeraCoder13-Feb-03 1:13
TeraCoder13-Feb-03 1:13 
GeneralRe: Need help on Intranet Web App Pin
leppie13-Feb-03 6:39
leppie13-Feb-03 6:39 

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.