He means following situation. There are 2 threads. One thread sets the socket to blocking state and starts to receive data. Let the next recv() function blocks the socket. The second thread wants to terminate this operation. What should it do? Calling AssyncSelect() from the second thread doesn't set the socket back to non-blocking mode.
SLiDeR
Posts
-
How to abort reading operation on blocking socket? -
Check box controlI know about MFC sources. There is CButton source code. But CButton simply uses CreateWindow() function to create check box. But i need source code for DrawItem() function.
-
Check box controlI want to make my own check box control. Where can i find source code for standard check box (CButton)? Or at least to know how to draw standard check box?
-
XModemI need XModem class for Visual C++.
-
GetTextMetrics()I use
m_edit.GetDC()->GetTextMetrics(&tm)
to determine current font height. Then i call m_edit.SetFont(&myfont) but GetTextMetrics(&tm) returns old values. How to update DC object? -
CEdit updateHow to disable temporarily update in CEdit? I want to change some text with ReplaceSel() method but it scrolls to inserted position. But u do not need it. My CEdit flicks because of that. In other words i want to change the text, which is not displayed at current view, without scrolling.
-
Resizing limitHow to limit resizing of the window? (Minimal size should be 100x100).
-
Lines in CEditYes.
-
Lines in CEditAnd what with line interval? Does
pDC->GetTextExtent("A")
consider it? -
Lines in CEditHow to determine the count of visible strings in CEdit?
-
Log WindowThanks for scrolling, but i need the first line to be displayed at the bottom of CEdit. Imagine empty Edit control. Then i call some AddLine(...) function and this line appears at the bottom (not at the top like CEDit does). The second line moves first one upward and so on. Generally i need something like this http://www.codeguru.com/controls/output\_window.shtml but with ability to select text
-
Log WindowI need special log/history window control where the first line that is entered appears at the bottom, and the contents are scrolled upwards. (Like in mIRC). And it must be able to select the text. Maybe there is a way to modify CEdit class?
-
Extra Explorer ButtonsDoes somebody know how to add a button "New Folder" to explorer toolbar? For example "Open" and "Save as" dialogs have this button. But Exporer itself doesn't.