Click here to Skip to main content
15,914,014 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ThumbNail Viewer Pin
Chris Losinger9-Oct-01 4:29
professionalChris Losinger9-Oct-01 4:29 
GeneralRe: ThumbNail Viewer Pin
9-Oct-01 4:52
suss9-Oct-01 4:52 
GeneralRe: ThumbNail Viewer Pin
Not Active10-Oct-01 3:35
mentorNot Active10-Oct-01 3:35 
QuestionRefrences in VB and what in VC++? Pin
Ahmad999-Oct-01 4:01
Ahmad999-Oct-01 4:01 
General[VC++][Excel][C++] Pin
9-Oct-01 3:58
suss9-Oct-01 3:58 
GeneralRe: [VC++][Excel][C++] Pin
Özgür9-Oct-01 4:10
Özgür9-Oct-01 4:10 
GeneralRe: How to write NULL separators in a text file Pin
Fredrik Sigbjörn9-Oct-01 2:48
Fredrik Sigbjörn9-Oct-01 2:48 
QuestionCSocket::CancelBlockingCall() from another thread? Pin
Peter Sjöström9-Oct-01 2:07
Peter Sjöström9-Oct-01 2:07 
I use a CSocket derived class with a derived CWinThread class and use CArchive with it. For some yet unknown reason Send() locks after a while of running (hours). The opened socket has communication initiated from both client and server at times, if that helps. (Server sends tiny data once per second, client sends kB data occasionally, like every 10 seconds or so, plus both sides sends an ACK byte for every command)

Anyway, since I cannot find the reason of the locking, I want to get around the locked state. I want to make something from the outside and would like to have an OnIdle timer reset at intervals in the CWinThread. A parent thread will check this timer and if it isn't reset in reasonable time (seconds) the parent thread will call CancelBlockingCall() on the locked socket.

Now, will this work? Isn't it illegal to call the CSocket object function from another thread?
GeneralRemoving Min & Max buttons in FrameWnd Pin
9-Oct-01 1:51
suss9-Oct-01 1:51 
GeneralRe: Removing Min & Max buttons in FrameWnd Pin
Fredrik Sigbjörn9-Oct-01 2:12
Fredrik Sigbjörn9-Oct-01 2:12 
GeneralPhone Dialer Pin
TalCh9-Oct-01 1:08
TalCh9-Oct-01 1:08 
GeneralRe: Phone Dialer Pin
Fredrik Sigbjörn9-Oct-01 2:03
Fredrik Sigbjörn9-Oct-01 2:03 
GeneralRe: Phone Dialer Pin
Fredrik Sigbjörn9-Oct-01 2:45
Fredrik Sigbjörn9-Oct-01 2:45 
GeneralPhysical Address Pin
Winston,Dang8-Oct-01 22:33
Winston,Dang8-Oct-01 22:33 
GeneralRe: Physical Address Pin
Oscar Vazquez9-Oct-01 8:01
Oscar Vazquez9-Oct-01 8:01 
QuestionDisplaying Tooltips on the scroll? Pin
Franz Klein8-Oct-01 22:21
Franz Klein8-Oct-01 22:21 
QuestionWin98 or Win NT? Pin
Daniel Visan8-Oct-01 21:58
Daniel Visan8-Oct-01 21:58 
AnswerRe: Win98 or Win NT? Pin
Christian Graus8-Oct-01 22:55
protectorChristian Graus8-Oct-01 22:55 
QuestionHow to check whether an URL is valid? Pin
phped8-Oct-01 21:48
phped8-Oct-01 21:48 
AnswerRe: How to check whether an URL is valid? Pin
9-Oct-01 1:48
suss9-Oct-01 1:48 
GeneralSimple ComboBox Problems Pin
Xavier Shay8-Oct-01 21:42
Xavier Shay8-Oct-01 21:42 
GeneralRe: Simple ComboBox Problems Pin
Bernhard8-Oct-01 22:09
Bernhard8-Oct-01 22:09 
GeneralRe: Simple ComboBox Problems Pin
8-Oct-01 23:41
suss8-Oct-01 23:41 
GeneralRe: Simple ComboBox Problems Pin
Jon Hulatt9-Oct-01 1:01
Jon Hulatt9-Oct-01 1:01 
Generalpassing pointers to functions as function args Pin
mightymark8-Oct-01 21:30
mightymark8-Oct-01 21:30 

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.