Click here to Skip to main content
15,900,258 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: DYNCALL(writeData)((UCHAR *) Pin
Matthew Faithfull6-Nov-07 23:08
Matthew Faithfull6-Nov-07 23:08 
GeneralCompilation on dual-core Pin
hairy_hats6-Nov-07 22:37
hairy_hats6-Nov-07 22:37 
GeneralRe: Compilation on dual-core Pin
Matthew Faithfull6-Nov-07 23:00
Matthew Faithfull6-Nov-07 23:00 
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 
My CAsyncSocket::Connect() call returns 0 and the GetLastError returns 10035 (WASEWOULDBLOCK). I understood it all so far that with this error code my OnConnect() will be called, when the Connect() finishes.

The problem I have now, that it never calls back; but when I have that:

<br />
if(  (Client.Connect(cServerIP, Port) == 0) &&  (Client.GetLastError() == 10035)    ) <br />
{<br />
    AfxMessageBox("");<br />
}<br />


The callback comes immediately.

I programmed kind of a heartbeat function, which works in the way that my Server waits 2secs after receiving the last life-sign and then sends an Echo Request and waits for 500msecs for an answer and my Client sends an Echo Ackknowloedge back. With the MessageBox this works fine, but only until the OK Button of the MB.

I tried to find answers in the Net and in the MSDN, but I couldn't.

Could you please help me?
What happens due to that MB?
How can I surround the MessageBox?
How can I make Connect() return !0?
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 
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 

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.