Click here to Skip to main content
16,011,358 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Javascript/DHTML and MFC Pin
Joaquín M López Muñoz7-Mar-02 6:02
Joaquín M López Muñoz7-Mar-02 6:02 
GeneralRe: Javascript/DHTML and MFC Pin
Shog97-Mar-02 10:40
sitebuilderShog97-Mar-02 10:40 
GeneralCStringArray error catching Pin
RK_20007-Mar-02 4:29
RK_20007-Mar-02 4:29 
GeneralRe: CStringArray error catching Pin
Tomasz Sowinski7-Mar-02 4:53
Tomasz Sowinski7-Mar-02 4:53 
GeneralRe: CStringArray error catching Pin
RK_20007-Mar-02 5:31
RK_20007-Mar-02 5:31 
GeneralRe: CStringArray error catching Pin
Joaquín M López Muñoz7-Mar-02 5:41
Joaquín M López Muñoz7-Mar-02 5:41 
GeneralCSocket problem Pin
Vladimir Georgiev7-Mar-02 4:23
Vladimir Georgiev7-Mar-02 4:23 
GeneralRe: CSocket problem Pin
Joaquín M López Muñoz7-Mar-02 5:57
Joaquín M López Muñoz7-Mar-02 5:57 
(Please tick on the checkbox "Display this messahe as-is (no HTML)" when submitting code. Otherwise, your '<'s won't appear.)

I'd say (though I haven't thoroughly examined your code) that you are implicitly relying on the false assumption that CSocket::Read will read as many bytes as requested. Actually, the only guarantee is that the number of bytes read will be more than zero and not more than requested (unless the connection is closed and no more data is available.)

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralHELP Pin
sardinka7-Mar-02 3:15
sardinka7-Mar-02 3:15 
GeneralRe: HELP Pin
Carlos Antollini7-Mar-02 3:17
Carlos Antollini7-Mar-02 3:17 
GeneralVC++:CAsyncSocket and SDI Pin
crasher7-Mar-02 3:09
crasher7-Mar-02 3:09 
GeneralRe: VC++:CAsyncSocket and SDI Pin
RobJones7-Mar-02 4:11
RobJones7-Mar-02 4:11 
GeneralRe: VC++:CAsyncSocket and SDI Pin
fara7-Mar-02 13:59
fara7-Mar-02 13:59 
GeneralRe: VC++:CAsyncSocket and SDI Pin
lucy7-Mar-02 4:13
lucy7-Mar-02 4:13 
QuestionHow to deal with a Word document? Pin
big20027-Mar-02 3:05
big20027-Mar-02 3:05 
AnswerRe: How to deal with a Word document? Pin
Carlos Antollini7-Mar-02 3:22
Carlos Antollini7-Mar-02 3:22 
Generalpacking bytes to form an int (32bit) Pin
Merle Pittman7-Mar-02 2:36
Merle Pittman7-Mar-02 2:36 
GeneralRe: packing bytes to form an int (32bit) Pin
Jon Hulatt7-Mar-02 2:51
Jon Hulatt7-Mar-02 2:51 
GeneralRe: packing bytes to form an int (32bit) Pin
Tomasz Sowinski7-Mar-02 2:50
Tomasz Sowinski7-Mar-02 2:50 
Generaldrive list, drive type and drive name Pin
Guy Lecomte7-Mar-02 2:27
Guy Lecomte7-Mar-02 2:27 
GeneralRe: drive list, drive type and drive name Pin
Tomasz Sowinski7-Mar-02 2:28
Tomasz Sowinski7-Mar-02 2:28 
GeneralRe: drive list, drive type and drive name Pin
Atul Dharne7-Mar-02 2:48
Atul Dharne7-Mar-02 2:48 
GeneralParsing MS Word file Pin
7-Mar-02 2:21
suss7-Mar-02 2:21 
GeneralRe: Parsing MS Word file Pin
Michael P Butler7-Mar-02 2:39
Michael P Butler7-Mar-02 2:39 
GeneralRe: Parsing MS Word file Pin
Atul Dharne7-Mar-02 3:05
Atul Dharne7-Mar-02 3:05 

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.