Click here to Skip to main content
15,903,030 members
Home / Discussions / Article Writing
   

Article Writing

 
GeneralLeft and top scrollbars Pin
Michael S. Scherotter5-May-01 8:45
Michael S. Scherotter5-May-01 8:45 
GeneralDrag & Drop Functionality using ATL Pin
Tushar Bhatt2-May-01 23:56
Tushar Bhatt2-May-01 23:56 
GeneralRe: Drag & Drop Functionality using ATL Pin
Erik Thompson3-May-01 7:30
sitebuilderErik Thompson3-May-01 7:30 
GeneralRe: Drag & Drop Functionality using ATL Pin
Tushar Bhatt4-May-01 21:40
Tushar Bhatt4-May-01 21:40 
GeneralRe: Drag & Drop Functionality using ATL Pin
Gogaaa4-Oct-09 21:50
Gogaaa4-Oct-09 21:50 
GeneralTo all you socket veterans out there Pin
2-May-01 23:43
suss2-May-01 23:43 
GeneralRe: To all you socket veterans out there Pin
7-May-01 10:03
suss7-May-01 10:03 
GeneralRe: To all you socket veterans out there Pin
Dark Angel17-May-01 16:33
Dark Angel17-May-01 16:33 
If your starting out, I'd just use the MFC CSocket class. Get a simple client and server working with CSocket and then get complicated (i.e. asychronous) later.

Override the OnReceive(...) message. When data shows up, OnReceive will get called, so then you call Receive(...) to receive the data. If there is more data in the buffer, OnReceive will get called again for you.

I don't know if the socket calls are blocking or not, but CSocket works synchronously rather than asynchronously, which will save you a lot of headaches.

In my experience, the CSocket Connect() call is annoying when it blocks, but the Receive() and Send() calls are barely noticable when you call them. Remember that we're going at network speed, dude, and we know that the data has already arrived via TCP/IP. All you have to do is read it out of memory.

"Harland Pepper, would you stop naming nuts" - Harland Pepper
GeneralGUI for "NET SEND" command for win NT Pin
2-May-01 21:23
suss2-May-01 21:23 
GeneralRe: GUI for Pin
yufu10-Jun-01 21:07
yufu10-Jun-01 21:07 
QuestionHow is OnRecieve called Pin
2-May-01 21:02
suss2-May-01 21:02 
AnswerRe: How is OnRecieve called Pin
6-May-01 7:28
suss6-May-01 7:28 
GeneralFile caching; cache manager; (cache interceptation) Pin
Lukacs Sandor2-May-01 10:27
Lukacs Sandor2-May-01 10:27 
GeneralRe: File caching; cache manager; (cache interceptation) Pin
4-May-01 5:36
suss4-May-01 5:36 
GeneralRe: File caching; cache manager; (cache interceptation) Pin
12-May-01 4:51
suss12-May-01 4:51 
QuestionHow to intercept printing Pin
1-May-01 4:03
suss1-May-01 4:03 
GeneralMDI Child's Size Pin
F.Dost30-Apr-01 5:04
F.Dost30-Apr-01 5:04 
GeneralRe: MDI Child's Size Pin
Tomasz Sowinski30-Apr-01 5:26
Tomasz Sowinski30-Apr-01 5:26 
GeneralHelp: a Class To Show JPG On a Dialog (As a Resource And As a File) Pin
Yovav28-Apr-01 9:09
Yovav28-Apr-01 9:09 
QuestionHow to add new columns to excel file Pin
24-Apr-01 20:56
suss24-Apr-01 20:56 
GeneralDetect Application Launch Pin
Ray Brack24-Apr-01 18:33
Ray Brack24-Apr-01 18:33 
GeneralRe: Detect Application Launch Pin
2-May-01 5:16
suss2-May-01 5:16 
GeneralWindow position Pin
Gary Hasman24-Apr-01 6:05
Gary Hasman24-Apr-01 6:05 
GeneralRe: Window position Pin
24-Apr-01 6:23
suss24-Apr-01 6:23 
GeneralObtaining IP address from modem device via PPP Pin
Johnas Cukier23-Apr-01 8:51
Johnas Cukier23-Apr-01 8:51 

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.