Re: CSocket, DLL and OnReceive never being called
- From: "Michael K. O'Neill" <MikeAThon2000@xxxxxxxxxxxxxxxxxx>
- Date: Tue, 21 Mar 2006 17:59:23 -0800
"sc" <a_quarius3-google@xxxxxxxx> wrote in message
news:1142964059.981773.34840@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
'Allo!
I am writing a regular DLL (using shared MFC) that works with CSockets.
This DLL is loaded by a service that has no message pump.
I created a UI thread (derived from CWinThread) and all socket-related
work is done from here. I can connect to the server, send messages,
etc. The problem is that OnReceive is never called on my socket.
Does anyone have an idea what might be the problem?
Thanks in advance!
Sandra
I'm not certain, but CSocket would not ever call OnReceive since CSocket is
intended to mimic a blocking, synchronous socket.
Try CAsyncSocket instead.
.
- Follow-Ups:
- Re: CSocket, DLL and OnReceive never being called
- From: Scott McPhillips [MVP]
- Re: CSocket, DLL and OnReceive never being called
- From: sc
- Re: CSocket, DLL and OnReceive never being called
- References:
- Prev by Date: Exception during debuggin
- Next by Date: Re: GetDlgItem Problem
- Previous by thread: CSocket, DLL and OnReceive never being called
- Next by thread: Re: CSocket, DLL and OnReceive never being called
- Index(es):
Relevant Pages
|
Loading