Click here to Skip to main content
15,902,894 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: disable/enabled minimize & close button Pin
NikoTanghe21-Apr-02 21:25
NikoTanghe21-Apr-02 21:25 
GeneralSelected text in memory Pin
Kemal OZLU18-Apr-02 21:45
Kemal OZLU18-Apr-02 21:45 
GeneralRe: Selected text in memory Pin
Paul M Watt19-Apr-02 5:46
mentorPaul M Watt19-Apr-02 5:46 
GeneralRe: Selected text in memory Pin
Kemal OZLU19-Apr-02 13:04
Kemal OZLU19-Apr-02 13:04 
GeneralRe: Selected text in memory Pin
Paul M Watt19-Apr-02 13:47
mentorPaul M Watt19-Apr-02 13:47 
GeneralUnlimited Socket receive Pin
Kristian3318-Apr-02 21:17
Kristian3318-Apr-02 21:17 
GeneralRe: Unlimited Socket receive Pin
18-Apr-02 23:07
suss18-Apr-02 23:07 
GeneralRe: Unlimited Socket receive Pin
Jon Hulatt18-Apr-02 23:33
Jon Hulatt18-Apr-02 23:33 
If you work like this:-

BYTE buff[4096];

int nRead;
  nRead = Receive(buff, 4096); 


you will read up to 4096 bytes. Then process those 4096 bytes, and try to read again...

eg:

// CFile f is an open CFile object
BYTE buff[4096];
int nRead=0;

do {
  nRead = Receive(buff, 4096); 
  f.Write(buff,nRead);
} while (nRead == 4096);


that will get all data waiting on the socket and write it to a file.






Sorry to dissapoint you all with my lack of a witty or poignant signature.
GeneralRe: Unlimited Socket receive Pin
19-Apr-02 3:38
suss19-Apr-02 3:38 
GeneralRe: Unlimited Socket receive Pin
Albert Pascual19-Apr-02 6:49
sitebuilderAlbert Pascual19-Apr-02 6:49 
GeneralC/C++ compiler Pin
NicholasCougar18-Apr-02 19:43
NicholasCougar18-Apr-02 19:43 
GeneralRe: C/C++ compiler Pin
Ravi Bhavnani18-Apr-02 20:17
professionalRavi Bhavnani18-Apr-02 20:17 
GeneralRe: C/C++ compiler Pin
Michael P Butler18-Apr-02 22:14
Michael P Butler18-Apr-02 22:14 
QuestionTextExtent??? Pin
Manikandan18-Apr-02 18:03
Manikandan18-Apr-02 18:03 
AnswerRe: TextExtent??? Pin
Paul M Watt18-Apr-02 18:09
mentorPaul M Watt18-Apr-02 18:09 
AnswerRe: TextExtent??? Pin
l a u r e n18-Apr-02 21:01
l a u r e n18-Apr-02 21:01 
GeneraltimeSetEvent Pin
Marcus Spitzmiller18-Apr-02 17:17
Marcus Spitzmiller18-Apr-02 17:17 
GeneralRe: Cool PE (.exe, .dll, .ocx) file resource tool Pin
Christian Graus18-Apr-02 16:51
protectorChristian Graus18-Apr-02 16:51 
QuestionHow to convert to twips...? Pin
Sprudling18-Apr-02 16:22
Sprudling18-Apr-02 16:22 
AnswerRe: How to converting to twips...? Pin
Michael Dunn18-Apr-02 17:04
sitebuilderMichael Dunn18-Apr-02 17:04 
GeneralRe: How to converting to twips...? Pin
Sprudling19-Apr-02 5:15
Sprudling19-Apr-02 5:15 
AnswerMay be this one help you... Pin
Manikandan18-Apr-02 18:07
Manikandan18-Apr-02 18:07 
AnswerRe: How to convert to twips...? Pin
l a u r e n18-Apr-02 21:04
l a u r e n18-Apr-02 21:04 
GeneralAligning text in CRichEditCtrl Pin
Sprudling18-Apr-02 15:43
Sprudling18-Apr-02 15:43 
GeneralRe: Aligning text in CRichEditCtrl Pin
Niklas L18-Apr-02 22:32
Niklas L18-Apr-02 22:32 

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.