Click here to Skip to main content
15,905,682 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMFC Exntension-DLL Resource-Access question Pin
ohadp4-May-04 3:01
ohadp4-May-04 3:01 
GeneralRe: MFC Exntension-DLL Resource-Access question Pin
Blake Miller6-May-04 8:18
Blake Miller6-May-04 8:18 
GeneralConvert HDC to long Pin
Kannan Kalyanaraman4-May-04 3:00
Kannan Kalyanaraman4-May-04 3:00 
GeneralRe: Convert HDC to long Pin
Anonymous4-May-04 3:12
Anonymous4-May-04 3:12 
GeneralRe: Convert HDC to long Pin
Kannan Kalyanaraman4-May-04 3:35
Kannan Kalyanaraman4-May-04 3:35 
GeneralO.O All my knowledge about asynchronous sockets and message pumps broken.. help.. Pin
Kuniva4-May-04 2:09
Kuniva4-May-04 2:09 
GeneralRe: O.O All my knowledge about asynchronous sockets and message pumps broken.. help.. Pin
Kuniva4-May-04 2:15
Kuniva4-May-04 2:15 
GeneralRe: O.O All my knowledge about asynchronous sockets and message pumps broken.. help.. Pin
Mike Dimmick4-May-04 5:14
Mike Dimmick4-May-04 5:14 
Your underlying problem is that the MessageBox API call has a message pump within it.

If you already know how to use WinSock, stick to that. The CSocket and CAsyncSocket classes are generally considered to be broken. You may find the Winsock Programmer's FAQ[^] helpful.

Do your comms on a separate thread and post notification messages back to the UI thread using PostMessage. If you want the comms thread to block waiting for a response from the UI, try SendMessageTimeout instead.

Stability. What an interesting concept. -- Chris Maunder
GeneralRe: O.O All my knowledge about asynchronous sockets and message pumps broken.. help.. Pin
Kuniva4-May-04 8:11
Kuniva4-May-04 8:11 
GeneralRe: O.O All my knowledge about asynchronous sockets and message pumps broken.. help.. Pin
Mike Dimmick4-May-04 12:11
Mike Dimmick4-May-04 12:11 
GeneralCFile size in bytes Pin
Jamie Kenyon4-May-04 2:02
Jamie Kenyon4-May-04 2:02 
GeneralRe: CFile size in bytes Pin
David Crow4-May-04 2:16
David Crow4-May-04 2:16 
GeneralRe: CFile size in bytes Pin
andyxia4-May-04 2:33
andyxia4-May-04 2:33 
GeneralRe: CFile size in bytes Pin
Alexander M.,4-May-04 3:18
Alexander M.,4-May-04 3:18 
GeneralRe: CFile size in bytes Pin
Jamie Kenyon4-May-04 4:50
Jamie Kenyon4-May-04 4:50 
QuestionSetDIBitsToDevice causes image to flip, why? Pin
uus994-May-04 2:02
uus994-May-04 2:02 
AnswerRe: SetDIBitsToDevice causes image to flip, why? Pin
Monty24-May-04 2:15
Monty24-May-04 2:15 
GeneralRe: SetDIBitsToDevice causes image to flip, why? Pin
uus994-May-04 2:27
uus994-May-04 2:27 
GeneralC2440: 'static_cast' Error Pin
sweep1234-May-04 1:51
sweep1234-May-04 1:51 
GeneralRe: C2440: 'static_cast' Error Pin
Mike Dimmick4-May-04 5:17
Mike Dimmick4-May-04 5:17 
GeneralRe: C2440: 'static_cast' Error Pin
sweep1234-May-04 5:56
sweep1234-May-04 5:56 
GeneralFile drag/drop problem, waiting for your help! Pin
andyxia4-May-04 1:21
andyxia4-May-04 1:21 
GeneralHook in dll Pin
yingkou4-May-04 0:31
yingkou4-May-04 0:31 
GeneralRe: Hook in dll Pin
Monty24-May-04 1:44
Monty24-May-04 1:44 
GeneralObj to Source file Pin
Gurou4-May-04 0:29
Gurou4-May-04 0:29 

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.