Click here to Skip to main content
15,914,642 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Happy Children's day to All! I met a problem. I can't use the derived Class from CSocket in Another Class. Pin
HENDRIK R1-Jun-04 21:43
HENDRIK R1-Jun-04 21:43 
GeneralRe: Happy Children's day to All! I met a problem. I can't use the derived Class from CSocket in Another Class. Pin
ocean20003-Jun-04 1:51
ocean20003-Jun-04 1:51 
GeneralRe: Happy Children's day to All! I met a problem. I can't use the derived Class from CSocket in Another Class. Pin
ocean20003-Jun-04 1:57
ocean20003-Jun-04 1:57 
GeneralRe: Happy Children's day to All! I met a problem. I can't use the derived Class from CSocket in Another Class. Pin
HENDRIK R3-Jun-04 2:49
HENDRIK R3-Jun-04 2:49 
GeneralLost/Corrupted Packets with CAsyncSocket Pin
User 127821-Jun-04 15:12
User 127821-Jun-04 15:12 
GeneralRe: Lost/Corrupted Packets with CAsyncSocket Pin
Johnny ²1-Jun-04 23:44
Johnny ²1-Jun-04 23:44 
GeneralRe: Lost/Corrupted Packets with CAsyncSocket Pin
User 127822-Jun-04 2:56
User 127822-Jun-04 2:56 
GeneralRe: Lost/Corrupted Packets with CAsyncSocket Pin
Johnny ²4-Jun-04 1:37
Johnny ²4-Jun-04 1:37 
You need to check the nSent value to see whether you have received enough data to fill your struct. If you receive fewer bytes than the structure, then you will need to wait (i.e. dont process the message, just wait for the next OnReceive) and add the new data's together. This in turn may mean you have enough data for 1.5 structures etc... the trick is to design a good buffering mechanism. The best way to do this is to buffer into a char array, and append onto the end for each OnReceive. Every time you have enough data, you can copy it into a structure and process it, and then move the remaining data in the buffer (if any) to the start.
GeneralRe: Lost/Corrupted Packets with CAsyncSocket Pin
User 127825-Jun-04 6:20
User 127825-Jun-04 6:20 
GeneralSubstitute Tite bar for window Pin
TrungHuynh1-Jun-04 15:09
TrungHuynh1-Jun-04 15:09 
GeneralExporting/importing certificates to/from a file to Internet Explorer Pin
joelvolvo1-Jun-04 14:29
joelvolvo1-Jun-04 14:29 
QuestionMultiline edit word wrap bug in XP-themed apps? Pin
David Pritchard1-Jun-04 14:27
David Pritchard1-Jun-04 14:27 
GeneralMultiline cells in grid control. Pin
richiebabes1-Jun-04 12:13
richiebabes1-Jun-04 12:13 
GeneralRe: Multiline cells in grid control. Pin
Nirav Doshi1-Jun-04 23:39
Nirav Doshi1-Jun-04 23:39 
GeneralClosing SDI application Pin
dart131-Jun-04 12:10
dart131-Jun-04 12:10 
GeneralRe: Closing SDI application Pin
Michael Dunn1-Jun-04 13:10
sitebuilderMichael Dunn1-Jun-04 13:10 
GeneralRe: Closing SDI application Pin
dart132-Jun-04 0:32
dart132-Jun-04 0:32 
GeneralMnemonic Keys not working in menus Pin
Anonymous1-Jun-04 11:38
Anonymous1-Jun-04 11:38 
Generalquestion about API Pin
Anonymous1-Jun-04 11:36
Anonymous1-Jun-04 11:36 
GeneralCToolTipCtrl::Create fails... Pin
herbert_chow1-Jun-04 11:35
herbert_chow1-Jun-04 11:35 
GeneralRe: CToolTipCtrl::Create fails... Pin
Diddy2-Jun-04 22:46
Diddy2-Jun-04 22:46 
GeneralRe: CToolTipCtrl::Create fails... Pin
herbert_chow3-Jun-04 6:09
herbert_chow3-Jun-04 6:09 
GeneralToolbar Editor Pin
Bob Stanneveld1-Jun-04 11:06
Bob Stanneveld1-Jun-04 11:06 
GeneralRe: Toolbar Editor Pin
TrungHuynh1-Jun-04 15:22
TrungHuynh1-Jun-04 15:22 
GeneralRe: Toolbar Editor Pin
Bob Stanneveld1-Jun-04 23:25
Bob Stanneveld1-Jun-04 23:25 

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.