Click here to Skip to main content
15,904,023 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Picture control Pin
Mark Salsbery27-Oct-07 7:10
Mark Salsbery27-Oct-07 7:10 
AnswerRe: Picture control Pin
david bagaturia27-Oct-07 22:26
david bagaturia27-Oct-07 22:26 
AnswerRe: Picture control Pin
david bagaturia28-Oct-07 0:00
david bagaturia28-Oct-07 0:00 
AnswerRe: Picture control Pin
Hamid_RT27-Oct-07 8:52
Hamid_RT27-Oct-07 8:52 
Questionwrite a function for DLL with parameter LPWORD in VC use in VB Pin
hameduser26-Oct-07 22:11
hameduser26-Oct-07 22:11 
Questioncan any body tell me how to make a invisble textbox visible in vc++ Pin
Deepu Antony26-Oct-07 21:41
Deepu Antony26-Oct-07 21:41 
AnswerRe: can any body tell me how to make a invisble textbox visible in vc++ [modified] Pin
chandu00426-Oct-07 21:53
chandu00426-Oct-07 21:53 
GeneralRe: can any body tell me how to make a invisble textbox visible in vc++ Pin
Deepu Antony26-Oct-07 22:10
Deepu Antony26-Oct-07 22:10 
GeneralRe: can any body tell me how to make a invisble textbox visible in vc++ Pin
saravana00127-Oct-07 4:46
saravana00127-Oct-07 4:46 
AnswerRe: can any body tell me how to make a invisble textbox visible in vc++ Pin
Nelek28-Oct-07 23:28
protectorNelek28-Oct-07 23:28 
Questionassembly in x64 Pin
zon_cpp26-Oct-07 21:29
zon_cpp26-Oct-07 21:29 
AnswerRe: assembly in x64 Pin
Nemanja Trifunovic27-Oct-07 9:38
Nemanja Trifunovic27-Oct-07 9:38 
QuestionResource handle Pin
Vinod CS26-Oct-07 21:04
Vinod CS26-Oct-07 21:04 
AnswerRe: Resource handle Pin
Paresh Chitte28-Oct-07 19:24
Paresh Chitte28-Oct-07 19:24 
QuestionAccesing operator from parent class Pin
Fernando A. Gomez F.26-Oct-07 18:03
Fernando A. Gomez F.26-Oct-07 18:03 
AnswerRe: Accesing operator from parent class [modified] Pin
Hamed Musavi27-Oct-07 0:05
Hamed Musavi27-Oct-07 0:05 
GeneralRe: Accesing operator from parent class Pin
Fernando A. Gomez F.27-Oct-07 13:28
Fernando A. Gomez F.27-Oct-07 13:28 
GeneralRe: Accesing operator from parent class Pin
Hamed Musavi27-Oct-07 20:34
Hamed Musavi27-Oct-07 20:34 
GeneralRe: Accesing operator from parent class Pin
Fernando A. Gomez F.27-Oct-07 22:08
Fernando A. Gomez F.27-Oct-07 22:08 
GeneralRe: Accesing operator from parent class Pin
Hamed Musavi28-Oct-07 3:16
Hamed Musavi28-Oct-07 3:16 
Questionhow to get Domain Role Pin
HOW WHAT26-Oct-07 14:33
HOW WHAT26-Oct-07 14:33 
AnswerRe: how to get Domain Role Pin
David Crow29-Oct-07 4:20
David Crow29-Oct-07 4:20 
QuestionCAsyncSocket and Message Pump Pin
Don Rolando26-Oct-07 10:30
Don Rolando26-Oct-07 10:30 
AnswerRe: CAsyncSocket and Message Pump Pin
Mark Salsbery26-Oct-07 12:10
Mark Salsbery26-Oct-07 12:10 
GeneralRe: CAsyncSocket and Message Pump Pin
Don Rolando26-Oct-07 20:20
Don Rolando26-Oct-07 20:20 
Thanks for your answer; so far I have done everything correct. My UI thread is is constructed without dedicated proc pointer (to be precise, without arguments at all) and started by CreateThread().
The socket is created afterwards within the thread.

Nevertheless, my CAsyncSocket won't receive until I call at least once the AfxMessageBox. Besides, why is that at all? If the socket has a wrong message handler (let's say, the handle to some object that has no message pump), why does it suddenly get those notifications? Did the handle get exchanged? Or is the "wrong" object getting those notifications after the message box? I just do not realize why a single message box call can make everything work, and how.

- Roland

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.