| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12
Comments:
<0> so you can you tell me why it doesn't work, or what my misunderstanding of << is? <1> marp you haven't told us what YOU think it does, but it doesn't do the "right" thing <1> for your program <2> that your program would go through the process of retrieving a complege image file that is corrupt <2> boggles my mind <3> no, entropy||, that's not likely what's happening <2> exacally <3> nobody said that's what's happening <2> anyone have any idea's <1> of course, but since you won't answer my question, I won't answer <0> what is your question? <2> not enough information <1> what do YOU think that fout << buffer; will do? exactly what? <0> I think that fout << buffer; will send the data in buffer to the filestream fout, writing that data to disk <0> which it does for text/html files <1> and how much data will it send?
<0> aha <0> 1024? <1> very unlikely <0> that is the size of buffer... <1> what's your point? <0> er <0> <-- confused :/ <1> what does the size of the buffer have to do with anything? <1> I mean, dwRead isn't going to be 1023 for EVERY read <0> oh <0> i need to sizeof(buffer)> <0> ? <1> use it where? <0> fout << sizeof(buffer) <1> try that in your program only use cout and see what it does <4> wow, sometimes you find pearls on EFnet <4> 08:23 < mauke> what do you mean by "cl*** oriented"? <4> 08:23 < Dreadwynn> To use implementationfiles and headerfiles <0> haha <1> I wouldn't have come up with that <1> /set mode +b Dreadwynn <5> morning <5> can anyone help me with state pattern <0> vawjr; ok so i filedata += buffer; in place of fout << buffer and then after the download then wrote to disk using fout << filedata; This stil doesn't work.... <2> some websites have files that will show complete download <2> but will only dl half a file unless proper login is used <0> proper login? <0> on a public http? <2> yes <0> and this could be enabled for images and not html/txt? <2> don't know <2> check the file you recieved <2> to see the size of it <0> i'm so confused. msdn says it works no matter what the file is <6> I'd say as long as you read and wrote it in binary mode it'd come out fine <0> Sepheus; did that, doesn't work <6> Stab it until it bleeds and try again <6> MAKE IT WORK muahahaha <0> i wish <6> Read and write file in binary, then download the same file with your web-browser <0> i tried doing it with winsock rather than wininet, same issue <6> Compare with hex-editor and see what's missing =D <6> lol <6> Or what was accidentally added ... <1> marp what the hell is the filedata += buffer for?? <7> did this question have a pastebin? <1> you really don't understand stream I/O and char* or char[] do you <1> yes <1> marp you are READING the file just fine, your writing is ****ed up <0> Tamama; http://www.noidea128.org/sourcefiles/16294.html <7> thanks <7> listen to vawjr, he has it right :P <0> vawjr; so a suggestion of how i am ****ing up the writing....? <1> well, why do you think you're doing it correctly? <6> "It's writing Jim, but not as we know it" <6> o.o <1> ...again I ask.... what do you think fout << buffer; is going to do <1> and why? <0> i expect it to send the data contained in buffer to the filestream, which it *does* for text/html <1> so what's different between text/html and pictures ? <6> Boobs
<0> binary... <0> and boobs.... <6> lol <1> and what does binary mean? <0> different to ascii ;D <1> <sigh> <6> The Philosophy of the Zero and the One my Son. <6> Agent Smith and Neo. <6> :> <1> Sepheus I don't need your "humor" <0> vawjr; i expect it to do what http://www.cppreference.com/cppio/constructors.html says it will do <6> Hm. <6> Digital Overload o.o <1> marp it does do that <1> the problem is, you havn't a clue what text is <0> omg <0> i set ofstream("filename",ios::binary) <7> the difference being, that your InternetReadFile works differently from fin>>temp <1> marp and.............? <1> do you know what ios::binary acutally does to a stream? <0> opens the file in binary mode... <3> that's the question - 'whats binary mode?' <1> and what difference does that make ?? btw, what OS are you running on? <0> xp <1> ok, do you know what difference it will make on XP (actually any windows system) <0> no <1> it will convert \n to \r\n or not (binary doesn't) on output and the opposite on input for the << and >> operators <1> NOTHING ELSE <0> oh <0> so what am i doing wrong? <1> so you clearly want binary because you don't want it changing all the \n to \r\n when you write <0> omg <1> well, when you fout << buffer; how many char is it going to write? <0> i don't know <7> neither does fout << :) <1> neither do I, and that's the problem <1> how do you suppose the program "knows" how much to write when you do fout << buffer' <0> er, buffer.size() :D <7> buffer is a char array, not a string <1> yeah, there's no .size() <7> so.. it will end at the first \0 <0> so prehaps when its writing text there is an endl; in buffer? <7> O.O <1> endl is an io manipulator, to a char <1> aargh <1> endl is an io manipulator, not a char <1> Tamama, gold star!! <3> hehe <7> Does it have a ribbon? <3> that gets you a 'get out of timeout free' card <7> ribbons are nice <1> it's pumpkin +59 <7> could i trade it for a apple +50 > <3> heh <0> myFile.write (buffer, 100); <3> 100 ? <0> random number <0> i still have to find out how much data <0> :/ <7> you get that from your read function... dont you? <0> no, i got thta from http://courses.cs.vt.edu/~cs2604/fall00/binio.html#write <7> sigh <7> you tell your read function to read 1924 bytes <7> erm <7> 1024 <7> so that function reports back how much it actually DID read <7> use that <0> ah <3> lol
Return to
#c++ or Go to some related
logs:
#MissKitten No Match for argument: httpd-devel Salaem #linux #linux #AllNiteCafe #AllNiteCafe range of hills runs up through Oxfordshire and Buckinghamshire kuclu #php
|
|