Click here to Skip to main content
15,896,207 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Help to solve the problem of memory Pin
Nibu babu thomas26-Jun-07 21:19
Nibu babu thomas26-Jun-07 21:19 
AnswerRe: Help to solve the problem of memory Pin
KarstenK26-Jun-07 21:24
mveKarstenK26-Jun-07 21:24 
Questionconcept of uploading... Pin
tasumisra26-Jun-07 20:56
tasumisra26-Jun-07 20:56 
AnswerRe: concept of uploading... Pin
_AnsHUMAN_ 26-Jun-07 21:50
_AnsHUMAN_ 26-Jun-07 21:50 
GeneralRe: concept of uploading... Pin
tasumisra26-Jun-07 22:04
tasumisra26-Jun-07 22:04 
AnswerRe: concept of uploading... Pin
Mark Salsbery27-Jun-07 6:07
Mark Salsbery27-Jun-07 6:07 
GeneralRe: concept of uploading... Pin
tasumisra29-Jun-07 6:12
tasumisra29-Jun-07 6:12 
GeneralRe: concept of uploading... Pin
Mark Salsbery2-Jul-07 13:44
Mark Salsbery2-Jul-07 13:44 
tasumisra wrote:
at the destination where the file is going to store ,just before creating the new file... there must be some temporary place where all these bytes will reside..


If using sockets, you'd be copying data from the socket buffer to your own memory buffer before
writing the bytes to a file so you've already got the data buffered.

If for some reason you need to receive an entire file before creating the destination file, and
the file is too big to use RAM to buffer it, you could use a temporary file to store the data
(see GetTempPath()/GetTempFileName()).

Generally data is received in manageable size chunks so you can just receive data into a
pre-allocated buffer.

Mark




Mark Salsbery
Microsoft MVP - Visual C++

AnswerRe: concept of uploading... Pin
Moak29-Jun-07 1:26
Moak29-Jun-07 1:26 
QuestionHow to close a user created message box without effecting the parent window Pin
msr_codeproject26-Jun-07 20:41
msr_codeproject26-Jun-07 20:41 
AnswerRe: How to close a user created message box without effecting the parent window Pin
Jhony george26-Jun-07 21:43
Jhony george26-Jun-07 21:43 
GeneralRe: How to close a user created message box without effecting the parent window Pin
msr_codeproject26-Jun-07 23:29
msr_codeproject26-Jun-07 23:29 
AnswerRe: How to close a user created message box without effecting the parent window Pin
prasad_som27-Jun-07 1:31
prasad_som27-Jun-07 1:31 
GeneralRe: How to close a user created message box without effecting the parent window Pin
msr_codeproject27-Jun-07 2:05
msr_codeproject27-Jun-07 2:05 
QuestionHow to forward delare CArray class ? Pin
VCSharp00726-Jun-07 20:21
VCSharp00726-Jun-07 20:21 
AnswerRe: How to forward delare CArray class ? Pin
CPallini26-Jun-07 20:50
mveCPallini26-Jun-07 20:50 
AnswerRe: How to forward delare CArray class ? Pin
Nibu babu thomas26-Jun-07 21:00
Nibu babu thomas26-Jun-07 21:00 
GeneralRe: How to forward delare CArray class ? Pin
VCSharp00726-Jun-07 22:31
VCSharp00726-Jun-07 22:31 
GeneralRe: How to forward delare CArray class ? Pin
Nibu babu thomas26-Jun-07 22:39
Nibu babu thomas26-Jun-07 22:39 
AnswerRe: How to forward delare CArray class ? Pin
KarstenK26-Jun-07 21:28
mveKarstenK26-Jun-07 21:28 
QuestionEnumerating Installed Apps with MSI Pin
Akin Ocal26-Jun-07 20:13
Akin Ocal26-Jun-07 20:13 
QuestionBSTR in C++ Pin
Axonn Echysttas26-Jun-07 19:45
Axonn Echysttas26-Jun-07 19:45 
AnswerRe: BSTR in C++ Pin
Nibu babu thomas26-Jun-07 20:10
Nibu babu thomas26-Jun-07 20:10 
GeneralRe: BSTR in C++ Pin
Axonn Echysttas26-Jun-07 20:52
Axonn Echysttas26-Jun-07 20:52 
GeneralRe: BSTR in C++ Pin
Nibu babu thomas26-Jun-07 21:06
Nibu babu thomas26-Jun-07 21:06 

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.