Click here to Skip to main content
16,014,613 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralProcess Memory Pin
StuartHall4-Feb-02 0:42
StuartHall4-Feb-02 0:42 
GeneralSelecting A Directory - Common Dialogs Pin
AJ1234-Feb-02 0:04
AJ1234-Feb-02 0:04 
GeneralRe: Selecting A Directory - Common Dialogs Pin
Christian Graus4-Feb-02 0:04
protectorChristian Graus4-Feb-02 0:04 
QuestionExpoert advice on MFC TCP/IP sockets, please? Pin
Peter Sjöström3-Feb-02 23:31
Peter Sjöström3-Feb-02 23:31 
AnswerRe: Expoert advice on MFC TCP/IP sockets, please? Pin
Joaquín M López Muñoz3-Feb-02 23:51
Joaquín M López Muñoz3-Feb-02 23:51 
GeneralRe: Expoert advice on MFC TCP/IP sockets, please? Pin
Peter Sjöström3-Feb-02 23:59
Peter Sjöström3-Feb-02 23:59 
AnswerRe: Expoert advice on MFC TCP/IP sockets, please? Pin
4-Feb-02 0:45
suss4-Feb-02 0:45 
GeneralRe: Expoert advice on MFC TCP/IP sockets, please? Pin
4-Feb-02 1:04
suss4-Feb-02 1:04 
I agree with you. I also have been using the CSocket class extensively in a lot of programs, there were three things that got me in the past:

1. You have to call AfxSocketInit() in each thread you use CSocket.
2. You need a message pump in the thread that uses CSocket if you expect the handlers (such as OnAccept, OnReceive, etc.) to work.
3. You need to check the error code whenever possible and re-establish the connection if necessary.

Other than that, it is great! Wink | ;) Wink | ;) Wink | ;)
GeneralRe: Expoert advice on MFC TCP/IP sockets, please? Pin
Peter Sjöström4-Feb-02 1:25
Peter Sjöström4-Feb-02 1:25 
AnswerRe: Expoert advice on MFC TCP/IP sockets, please? Pin
markkuk4-Feb-02 1:46
markkuk4-Feb-02 1:46 
GeneralRe: Expoert advice on MFC TCP/IP sockets, please? Pin
Jay Beckert5-Feb-02 11:14
Jay Beckert5-Feb-02 11:14 
Generalscrolling Pin
Chagit3-Feb-02 23:13
Chagit3-Feb-02 23:13 
QuestionHow this is working? Pin
3-Feb-02 22:50
suss3-Feb-02 22:50 
AnswerRe: How this is working? Pin
Paul M Watt3-Feb-02 23:13
mentorPaul M Watt3-Feb-02 23:13 
GeneralSome Code Pin
NikoTanghe3-Feb-02 22:19
NikoTanghe3-Feb-02 22:19 
GeneralRe: Some Code Pin
Joaquín M López Muñoz3-Feb-02 23:37
Joaquín M López Muñoz3-Feb-02 23:37 
GeneralRe: Some Code Pin
NikoTanghe4-Feb-02 0:13
NikoTanghe4-Feb-02 0:13 
GeneralRe: Some Code Pin
Joaquín M López Muñoz4-Feb-02 0:21
Joaquín M López Muñoz4-Feb-02 0:21 
GeneralRe: Some Code Pin
Philip Patrick4-Feb-02 2:05
professionalPhilip Patrick4-Feb-02 2:05 
Generalmy recordset can't add new element Pin
3-Feb-02 22:00
suss3-Feb-02 22:00 
GeneralRe: my recordset can't add new element Pin
Mazdak3-Feb-02 22:22
Mazdak3-Feb-02 22:22 
GeneralRe: my recordset can't add new element Pin
4-Feb-02 9:33
suss4-Feb-02 9:33 
GeneralWav Pin
Chagit3-Feb-02 20:59
Chagit3-Feb-02 20:59 
GeneralRe: Wav Pin
Mazdak3-Feb-02 21:10
Mazdak3-Feb-02 21:10 
GeneralRe: Wav Pin
Paul M Watt3-Feb-02 21:08
mentorPaul M Watt3-Feb-02 21:08 

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.