Click here to Skip to main content
16,006,531 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Compilation on dual-core Pin
hairy_hats6-Nov-07 23:04
hairy_hats6-Nov-07 23:04 
GeneralRe: Compilation on dual-core Pin
Matthew Faithfull6-Nov-07 23:15
Matthew Faithfull6-Nov-07 23:15 
QuestionRe: Compilation on dual-core Pin
David Crow7-Nov-07 4:40
David Crow7-Nov-07 4:40 
AnswerRe: Compilation on dual-core Pin
hairy_hats7-Nov-07 4:43
hairy_hats7-Nov-07 4:43 
QuestionAnother CAsyncSocket Problem Pin
TheInfernalCrow6-Nov-07 22:04
TheInfernalCrow6-Nov-07 22:04 
GeneralRe: Another CAsyncSocket Problem Pin
Matthew Faithfull6-Nov-07 22:45
Matthew Faithfull6-Nov-07 22:45 
GeneralRe: Another CAsyncSocket Problem Pin
TheInfernalCrow7-Nov-07 1:40
TheInfernalCrow7-Nov-07 1:40 
AnswerRe: Another CAsyncSocket Problem Pin
Mark Salsbery7-Nov-07 7:37
Mark Salsbery7-Nov-07 7:37 
I'm going to assume you're doing this all on one thread...

As Matthew mentioned, MFC uses a hidden window to handle asynchronous socket
messages.

If you're going to use sockets asynchronously on one thread, then you need to
make sure you do your socket operations in the "callbacks" and return immediately
so the message loop can continue running.

If you go into a modal loop somewhere (like if you use the Win32 ::MessageBox()
API) then your sockets will stop responding.

If you're not already doing so, you may want to try AfxMessageBox() instead of
::MessageBox().  MFC simulates modal dialogs by using modeless dialogs so maybe
your socket messages will still get dispatched.

Mark




Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralRe: Another CAsyncSocket Problem Pin
TheInfernalCrow7-Nov-07 19:25
TheInfernalCrow7-Nov-07 19:25 
QuestionAdd an image on a button. Pin
CodingLover6-Nov-07 21:47
CodingLover6-Nov-07 21:47 
AnswerRe: Add an image on a button. [modified] Pin
Nelek6-Nov-07 22:16
protectorNelek6-Nov-07 22:16 
AnswerRe: Add an image on a button. Pin
Haroon Sarwar6-Nov-07 22:38
Haroon Sarwar6-Nov-07 22:38 
AnswerRe: Add an image on a button. Pin
Hamid_RT7-Nov-07 0:20
Hamid_RT7-Nov-07 0:20 
AnswerRe: Add an image on a button. Pin
David Crow7-Nov-07 4:41
David Crow7-Nov-07 4:41 
GeneralRe: Add an image on a button. Pin
CodingLover7-Nov-07 17:12
CodingLover7-Nov-07 17:12 
QuestionCListCtrl subitem text color problem [Solved] Pin
fantasy12156-Nov-07 21:35
fantasy12156-Nov-07 21:35 
GeneralRe: CListCtrl subitem text color problem Pin
fantasy12157-Nov-07 14:20
fantasy12157-Nov-07 14:20 
AnswerOfftopic Pin
Nelek7-Nov-07 21:06
protectorNelek7-Nov-07 21:06 
QuestionHow can i print whole screen content through printer? Pin
bankey10106-Nov-07 21:24
bankey10106-Nov-07 21:24 
AnswerRe: How can i print whole screen content through printer? Pin
Nelek6-Nov-07 22:12
protectorNelek6-Nov-07 22:12 
AnswerRe: Context Menu problem Pin
Nelek6-Nov-07 21:17
protectorNelek6-Nov-07 21:17 
Questionaudio recording Pin
kadkir6-Nov-07 20:39
kadkir6-Nov-07 20:39 
GeneralRe: audio recording Pin
Matthew Faithfull6-Nov-07 23:18
Matthew Faithfull6-Nov-07 23:18 
AnswerRe: audio recording Pin
Nishad S7-Nov-07 0:43
Nishad S7-Nov-07 0:43 
QuestionRe: audio recording Pin
kadkir9-Nov-07 17:24
kadkir9-Nov-07 17:24 

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.