Click here to Skip to main content
15,897,371 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalword and VISUAL C++ Pin
andfrr19-Dec-03 4:13
andfrr19-Dec-03 4:13 
Questionwhat are these fonts anyway Pin
wolfgang-schiffer19-Dec-03 4:07
susswolfgang-schiffer19-Dec-03 4:07 
Generalregd database connection Pin
karteek19-Dec-03 3:27
karteek19-Dec-03 3:27 
GeneralRe: regd database connection Pin
David Crow19-Dec-03 3:54
David Crow19-Dec-03 3:54 
Generaldiall_up connection Pin
heba_zien19-Dec-03 3:21
heba_zien19-Dec-03 3:21 
Generalproblem with listctrl Pin
shyampriya19-Dec-03 3:18
shyampriya19-Dec-03 3:18 
GeneralRe: problem with listctrl Pin
valikac19-Dec-03 4:57
valikac19-Dec-03 4:57 
GeneralTo dispatch messages of main thread in OnReceive(...) procedure of CAsyncSocket derived class Pin
erkanina19-Dec-03 3:16
erkanina19-Dec-03 3:16 
I have a client application which playbacks remote video files time-synchronous. I used CAsyncSocket derrived class for TCP/IP transaction.

In order to display video frames time-synchronous I have to place "Sleep(...)" method in OnReceive(...) procedure. But "Sleep(...)" method blocks message processing of main thread in specified time-period, so the application is not responding the mouse and keyboard events or responding with 30-40 second delay. Because the socket generating messages heavily.

So, I used PeekMessage(.....), TranslateMessage(...),DispatchMessage(...) in specified time-period instead of Sleep(...) method in order to proceed messages during waiting period. It is working correctly. I filtered a lot of message that may be dangerous to dispatch in OnReceive(...) procedure. Everything seems OK. The mouse and keyboard messages are being handled correctly.

But I noticed a strange behaviour; there is a drop-down list box in the main window. Normally, the selected item of drop-down list box should change when mouse pointer comes over (without clicking). But it is not working. Selected item (blue printed item) does not change when mouse pointer comes over.

I thing, It is dispatching all messages except some socket messages in OnReceive(...) procedure. What may cause this problem. Does anyone have an idea.

Thanks.

Erkan Ermis

Erkan Ermis
GeneralRe: To dispatch messages of main thread in OnReceive(...) procedure of CAsyncSocket derived class Pin
igor196019-Dec-03 12:14
igor196019-Dec-03 12:14 
GeneralMessage Closed Pin
21-Dec-03 23:13
erkanina21-Dec-03 23:13 
GeneralMessage Closed Pin
21-Dec-03 23:41
erkanina21-Dec-03 23:41 
GeneralRe: To dispatch messages of main thread in OnReceive(...) procedure of CAsyncSocket derived class Pin
igor196022-Dec-03 6:53
igor196022-Dec-03 6:53 
GeneralHELP - Symbol Setup problem with VisualC++6.0 on w2k Pin
teobg7019-Dec-03 1:23
teobg7019-Dec-03 1:23 
GeneralMouse over the toolbar and leave it. Pin
Eugene Pustovoyt19-Dec-03 0:17
Eugene Pustovoyt19-Dec-03 0:17 
GeneralRe: Mouse over the toolbar and leave it. Pin
De Nardis Andrea19-Dec-03 1:03
De Nardis Andrea19-Dec-03 1:03 
GeneralRe: Mouse over the toolbar and leave it. Pin
Eugene Pustovoyt19-Dec-03 1:38
Eugene Pustovoyt19-Dec-03 1:38 
GeneralRe: Mouse over the toolbar and leave it. Pin
Maximilien19-Dec-03 2:48
Maximilien19-Dec-03 2:48 
GeneralRe: Mouse over the toolbar and leave it. Pin
jmkhael19-Dec-03 3:05
jmkhael19-Dec-03 3:05 
Generalunnamed event object Pin
recksiek19-Dec-03 0:10
recksiek19-Dec-03 0:10 
GeneralRe: unnamed event object Pin
John R. Shaw19-Dec-03 0:39
John R. Shaw19-Dec-03 0:39 
Generaldelete read only file Pin
gaog18-Dec-03 23:39
gaog18-Dec-03 23:39 
GeneralRe: delete read only file Pin
Neville Franks19-Dec-03 0:24
Neville Franks19-Dec-03 0:24 
GeneralRe: delete read only file Pin
gaog19-Dec-03 11:22
gaog19-Dec-03 11:22 
Generalregister vs other types Pin
Ares218-Dec-03 23:04
Ares218-Dec-03 23:04 
GeneralRe: register vs other types Pin
Mike Beckerleg18-Dec-03 23:27
Mike Beckerleg18-Dec-03 23:27 

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.