Click here to Skip to main content
16,006,845 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Sending ALT+CTRL+DEL to the system Pin
Zoltan Csizmadia28-Aug-01 4:14
Zoltan Csizmadia28-Aug-01 4:14 
GeneralRe: Sending ALT+CTRL+DEL to the system Pin
Vijay S28-Aug-01 5:33
Vijay S28-Aug-01 5:33 
GeneralRe: Sending ALT+CTRL+DEL to the system Pin
Zoltan Csizmadia28-Aug-01 5:46
Zoltan Csizmadia28-Aug-01 5:46 
GeneralRe: Sending ALT+CTRL+DEL to the system Pin
Vijay S28-Aug-01 5:48
Vijay S28-Aug-01 5:48 
GeneralCreating CFormView-form from dialog Pin
28-Aug-01 3:22
suss28-Aug-01 3:22 
GeneralRe: Creating CFormView-form from dialog Pin
Joel Holdsworth28-Aug-01 9:59
Joel Holdsworth28-Aug-01 9:59 
GeneralRe: Creating CFormView-form from dialog Pin
29-Aug-01 1:57
suss29-Aug-01 1:57 
GeneralWSAAsyncselect winsock problem Pin
Kuniva28-Aug-01 2:54
Kuniva28-Aug-01 2:54 
i am using the function WSAAsyncSelect() to make a socket send a windows message to the message queu of my program when data is ready to be received, like this:

WSAAsyncSelect(sd, hwnd, WM_SOCKET, FD_READ);

it sends the WM_SOCKET message and all works well ... but
i also want a message to be sent when the connection is closed, thus the message WM_LOST. but when i just add:

WSAAsyncSelect(sd, hwnd, WM_LOST, FD_CLOSE);

the function seems to overide the previous and it doesn't respond to received data anymore. how do i make it respond to both with a different message, or is it possible to say something like:

WSAAsyncSelect(sd, hwnd, WM_SOCKET, FD_READ | FD_CLOSE);

and see the difference in the message handler...?

Thanks Cool | :cool:

Kuniva
GeneralRe: WSAAsyncselect winsock problem Pin
Malcolm McMahon28-Aug-01 3:04
Malcolm McMahon28-Aug-01 3:04 
GeneralRe: WSAAsyncselect winsock problem Pin
Kuniva28-Aug-01 23:11
Kuniva28-Aug-01 23:11 
GeneralRe: WSAAsyncselect winsock problem Pin
Kuniva28-Aug-01 23:14
Kuniva28-Aug-01 23:14 
GeneralRe: WSAAsyncselect winsock problem Pin
Malcolm McMahon29-Aug-01 0:04
Malcolm McMahon29-Aug-01 0:04 
GeneralTooltips and Trees Pin
Malcolm McMahon28-Aug-01 2:50
Malcolm McMahon28-Aug-01 2:50 
GeneralRe: Tooltips and Trees Pin
Tomasz Sowinski28-Aug-01 3:24
Tomasz Sowinski28-Aug-01 3:24 
GeneralRe: Tooltips and Trees Pin
Malcolm McMahon28-Aug-01 5:20
Malcolm McMahon28-Aug-01 5:20 
GeneralRe: Tooltips and Trees Pin
Tomasz Sowinski28-Aug-01 5:25
Tomasz Sowinski28-Aug-01 5:25 
GeneralRe: Tooltips and Trees Pin
Malcolm McMahon28-Aug-01 5:28
Malcolm McMahon28-Aug-01 5:28 
GeneralRe: Tooltips and Trees Pin
Tomasz Sowinski28-Aug-01 5:34
Tomasz Sowinski28-Aug-01 5:34 
GeneralRe: Tooltips and Trees Pin
Malcolm McMahon28-Aug-01 5:41
Malcolm McMahon28-Aug-01 5:41 
GeneralMemory leak Pin
Noman Nadeem28-Aug-01 2:16
Noman Nadeem28-Aug-01 2:16 
GeneralRe: Memory leak Pin
Anders Molin28-Aug-01 2:23
professionalAnders Molin28-Aug-01 2:23 
GeneralRe: Memory leak Pin
billb211228-Aug-01 6:15
billb211228-Aug-01 6:15 
GeneralRe: Memory leak Pin
Derek Waters28-Aug-01 14:08
Derek Waters28-Aug-01 14:08 
GeneralTwo simple questions ... Pin
Hadi Rezaee28-Aug-01 1:12
Hadi Rezaee28-Aug-01 1:12 
GeneralRe: Two simple questions ... Pin
Anders Molin28-Aug-01 2:20
professionalAnders Molin28-Aug-01 2:20 

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.