Click here to Skip to main content
15,922,166 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Bitmap array Pin
ShilpiP27-Jun-07 2:24
ShilpiP27-Jun-07 2:24 
GeneralRe: Bitmap array Pin
Mark Salsbery27-Jun-07 5:33
Mark Salsbery27-Jun-07 5:33 
QuestionFiles Drag operation Pin
Jhony george26-Jun-07 23:14
Jhony george26-Jun-07 23:14 
AnswerRe: Files Drag operation Pin
dfz26-Jun-07 23:50
dfz26-Jun-07 23:50 
GeneralRe: Files Drag operation Pin
Jhony george27-Jun-07 0:26
Jhony george27-Jun-07 0:26 
QuestionHow to drag the splitter windows in doc/view application Pin
ss43126-Jun-07 23:00
ss43126-Jun-07 23:00 
AnswerRe: How to drag the splitter windows in doc/view application Pin
aatul26-Jun-07 23:50
aatul26-Jun-07 23:50 
AnswerRe: How to drag the splitter windows in doc/view application Pin
Mark Salsbery27-Jun-07 5:50
Mark Salsbery27-Jun-07 5:50 
QuestionReturning A String Array Pin
jannathali26-Jun-07 22:42
jannathali26-Jun-07 22:42 
AnswerRe: Returning A String Array Pin
CPallini26-Jun-07 22:52
mveCPallini26-Jun-07 22:52 
QuestionHow to make drop down part of toolbar button more wider? Pin
Padmanabh Sharma26-Jun-07 22:30
Padmanabh Sharma26-Jun-07 22:30 
QuestionMS-Word text into clipboard Pin
baerten26-Jun-07 21:45
baerten26-Jun-07 21:45 
AnswerRe: MS-Word text into clipboard Pin
Hamid_RT26-Jun-07 22:04
Hamid_RT26-Jun-07 22:04 
QuestionModifing values of list control.... Pin
neha.agarwal2726-Jun-07 21:22
neha.agarwal2726-Jun-07 21:22 
AnswerRe: Modifing values of list control.... Pin
Jhony george26-Jun-07 21:47
Jhony george26-Jun-07 21:47 
AnswerRe: Modifing values of list control.... Pin
Hamid_RT26-Jun-07 22:07
Hamid_RT26-Jun-07 22:07 
QuestionHelp to solve the problem of memory Pin
James_Programmer26-Jun-07 21:03
James_Programmer26-Jun-07 21:03 
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++

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.