Click here to Skip to main content
15,888,521 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Translate Logical Drive to Physical Drive Pin
Andy Belton4-Jun-12 4:34
Andy Belton4-Jun-12 4:34 
QuestionIostream processing\flags question Pin
GuimaSun10-Aug-09 12:23
GuimaSun10-Aug-09 12:23 
AnswerRe: Iostream processing\flags question Pin
Stuart Dootson10-Aug-09 21:10
professionalStuart Dootson10-Aug-09 21:10 
GeneralRe: Iostream processing\flags question Pin
GuimaSun11-Aug-09 2:55
GuimaSun11-Aug-09 2:55 
QuestionWait Until Event Occurs Pin
staticv10-Aug-09 4:50
staticv10-Aug-09 4:50 
AnswerRe: Wait Until Event Occurs Pin
Stuart Dootson10-Aug-09 8:32
professionalStuart Dootson10-Aug-09 8:32 
GeneralRe: Wait Until Event Occurs Pin
staticv10-Aug-09 20:30
staticv10-Aug-09 20:30 
GeneralRe: Wait Until Event Occurs Pin
Stuart Dootson10-Aug-09 21:01
professionalStuart Dootson10-Aug-09 21:01 
Quite true - I was thinking of the other sort of asynchronous IO that uses APCs (but that wouldn't work with WaitForSingleObject - it would need WaitForSingleObjectEx). OK. So, you need a window message pump to handle blocking for you...which is actually something that CSocket provides - whioch leads to the question - why not use CSocket instead of CAsyncSocket? I can't see any advantage to CAsyncSocket if you're only using one socket....

Anyway - to see how to block and process socket notifications, have a look at the CSocket message loop in CSocket::ProcessAuxQueue, which is in sockcore.cpp in your MFC source directory (that's C:\Program Files\Microsoft Visual Studio 9.0\VC\atlmfc\src\mfc for me).

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

GeneralRe: Wait Until Event Occurs Pin
staticv10-Aug-09 21:25
staticv10-Aug-09 21:25 
QuestionSHGetFolderPath returns E_FAIL for CSIDL_BITBUCKET Pin
Nitheesh George10-Aug-09 4:43
Nitheesh George10-Aug-09 4:43 
AnswerRe: SHGetFolderPath returns E_FAIL for CSIDL_BITBUCKET Pin
Stuart Dootson10-Aug-09 8:27
professionalStuart Dootson10-Aug-09 8:27 
AnswerRe: SHGetFolderPath returns E_FAIL for CSIDL_BITBUCKET Pin
Randor 10-Aug-09 9:44
professional Randor 10-Aug-09 9:44 
GeneralRe: SHGetFolderPath returns E_FAIL for CSIDL_BITBUCKET Pin
Stuart Dootson10-Aug-09 10:29
professionalStuart Dootson10-Aug-09 10:29 
GeneralRe: SHGetFolderPath returns E_FAIL for CSIDL_BITBUCKET Pin
Randor 10-Aug-09 11:15
professional Randor 10-Aug-09 11:15 
GeneralRe: SHGetFolderPath returns E_FAIL for CSIDL_BITBUCKET Pin
Stuart Dootson10-Aug-09 11:23
professionalStuart Dootson10-Aug-09 11:23 
GeneralRe: SHGetFolderPath returns E_FAIL for CSIDL_BITBUCKET Pin
Nitheesh George10-Aug-09 21:38
Nitheesh George10-Aug-09 21:38 
GeneralRe: SHGetFolderPath returns E_FAIL for CSIDL_BITBUCKET Pin
Randor 10-Aug-09 22:55
professional Randor 10-Aug-09 22:55 
GeneralRe: SHGetFolderPath returns E_FAIL for CSIDL_BITBUCKET Pin
kilt11-Aug-09 6:09
kilt11-Aug-09 6:09 
QuestionCan I destory other thread's child window? Pin
fitatc9-Aug-09 23:35
fitatc9-Aug-09 23:35 
QuestionRe: Can I destory other thread's child window? Pin
Adam Roderick J10-Aug-09 2:32
Adam Roderick J10-Aug-09 2:32 
QuestionInternal buffer of file Pin
trioum9-Aug-09 23:34
trioum9-Aug-09 23:34 
AnswerRe: Internal buffer of file Pin
Cedric Moonen9-Aug-09 23:52
Cedric Moonen9-Aug-09 23:52 
GeneralRe: Internal buffer of file Pin
trioum10-Aug-09 0:09
trioum10-Aug-09 0:09 
GeneralRe: Internal buffer of file Pin
Cedric Moonen10-Aug-09 0:10
Cedric Moonen10-Aug-09 0:10 
GeneralRe: Internal buffer of file Pin
trioum10-Aug-09 0:33
trioum10-Aug-09 0:33 

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.