Click here to Skip to main content
15,926,290 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Inheritance and CFormView Pin
dazinith15-Apr-02 11:00
dazinith15-Apr-02 11:00 
Generalstring to LPCWSTR Pin
15-Apr-02 9:30
suss15-Apr-02 9:30 
GeneralRe: string to LPCWSTR Pin
Tim Smith15-Apr-02 9:44
Tim Smith15-Apr-02 9:44 
GeneralRe: string to LPCWSTR Pin
Joaquín M López Muñoz15-Apr-02 10:33
Joaquín M López Muñoz15-Apr-02 10:33 
Generalproblem creating a window just like debugger window in VC++ Pin
Arunkb15-Apr-02 8:46
Arunkb15-Apr-02 8:46 
GeneralRe: problem creating a window just like debugger window in VC++ Pin
l a u r e n15-Apr-02 9:51
l a u r e n15-Apr-02 9:51 
GeneralProblems with CSocket Pin
Sprudling15-Apr-02 8:08
Sprudling15-Apr-02 8:08 
GeneralRe: Problems with CSocket Pin
Paul A. Howes15-Apr-02 9:33
Paul A. Howes15-Apr-02 9:33 
When you create sockets in Windows using SDK functions, they are generally blocking, meaning that if no data is available for a receive, the application would hang until data is ready.

However, the CAsyncSocket class hides a lot of implementation details from you. When you create a socket based on this class, the calls are non-blocking. The idea is that your program will respond to networking events, rather than waiting for something to happen.

Receiving "WSAEWOULDBLOCK" is more of an informational message than an error. All it is telling you is that if you were using the blocking version of that function, it would be blocking right now.

What you should do is create a subclass of CAsyncSocket, and overload the "OnReceive" function. Any time data is available from the network, this function is called. You can put it in your screen buffer and display it at that point.

--
Paul

"I drank... WHAT?"
GeneralRe: Problems with CSocket Pin
Sprudling15-Apr-02 10:13
Sprudling15-Apr-02 10:13 
GeneralRe: Problems with CSocket Pin
Paul A. Howes15-Apr-02 12:14
Paul A. Howes15-Apr-02 12:14 
QuestionHow to Execute a continues Dos command from C++ Pin
Gaurika Wijeratne15-Apr-02 7:59
Gaurika Wijeratne15-Apr-02 7:59 
AnswerRe: How to Execute a continues Dos command from C++ Pin
Nish Nishant15-Apr-02 8:08
sitebuilderNish Nishant15-Apr-02 8:08 
AnswerRe: How to Execute a continues Dos command from C++ Pin
Ben Burnett15-Apr-02 10:04
Ben Burnett15-Apr-02 10:04 
GeneralBUG Pin
Gianfranco Lanzetta15-Apr-02 7:03
Gianfranco Lanzetta15-Apr-02 7:03 
GeneralRe: BUG Pin
Tim Smith15-Apr-02 7:20
Tim Smith15-Apr-02 7:20 
GeneralRe: BUG Pin
Nish Nishant15-Apr-02 7:27
sitebuilderNish Nishant15-Apr-02 7:27 
GeneralRe: BUG Pin
Tim Smith15-Apr-02 8:01
Tim Smith15-Apr-02 8:01 
GeneralRe: BUG Pin
Nish Nishant15-Apr-02 8:06
sitebuilderNish Nishant15-Apr-02 8:06 
GeneralRe: BUG Pin
Tim Smith15-Apr-02 8:10
Tim Smith15-Apr-02 8:10 
GeneralRe: BUG Pin
Gianfranco Lanzetta15-Apr-02 7:44
Gianfranco Lanzetta15-Apr-02 7:44 
GeneralRe: BUG Pin
Tim Smith15-Apr-02 8:01
Tim Smith15-Apr-02 8:01 
GeneralRe: BUG Pin
Tim Smith15-Apr-02 8:09
Tim Smith15-Apr-02 8:09 
QuestionHow to get handle of control ? Pin
dlhson15-Apr-02 6:29
dlhson15-Apr-02 6:29 
AnswerRe: How to get handle of control ? Pin
Nish Nishant15-Apr-02 6:39
sitebuilderNish Nishant15-Apr-02 6:39 
AnswerRe: How to get handle of control ? Pin
Paul M Watt15-Apr-02 7:38
mentorPaul M Watt15-Apr-02 7:38 

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.