Click here to Skip to main content
15,906,708 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Overlapped IO sockets sending and receiving at the same time Pin
Richard Andrew x6416-Nov-11 10:19
professionalRichard Andrew x6416-Nov-11 10:19 
GeneralRe: Overlapped IO sockets sending and receiving at the same time Pin
jtlancer16-Nov-11 11:51
jtlancer16-Nov-11 11:51 
GeneralRe: Overlapped IO sockets sending and receiving at the same time Pin
Mark Salsbery16-Nov-11 12:14
Mark Salsbery16-Nov-11 12:14 
GeneralRe: Overlapped IO sockets sending and receiving at the same time Pin
Richard Andrew x6416-Nov-11 12:50
professionalRichard Andrew x6416-Nov-11 12:50 
QuestionCSimpleDate and Visual Studio 2010 Pin
xyloweb16-Nov-11 4:39
xyloweb16-Nov-11 4:39 
AnswerRe: CSimpleDate and Visual Studio 2010 Pin
Chris Losinger16-Nov-11 4:54
professionalChris Losinger16-Nov-11 4:54 
SuggestionRe: CSimpleDate and Visual Studio 2010 Pin
David Crow16-Nov-11 5:03
David Crow16-Nov-11 5:03 
AnswerRe: CSimpleDate and Visual Studio 2010 Pin
Maximilien16-Nov-11 8:59
Maximilien16-Nov-11 8:59 
AnswerRe: CSimpleDate and Visual Studio 2010 Pin
xyloweb25-Nov-11 9:09
xyloweb25-Nov-11 9:09 
SuggestionCollaborated Tool/Library development Pin
BrainlessLabs.com15-Nov-11 22:59
BrainlessLabs.com15-Nov-11 22:59 
GeneralRe: Collaborated Tool/Library development Pin
Richard MacCutchan15-Nov-11 23:51
mveRichard MacCutchan15-Nov-11 23:51 
GeneralRe: Collaborated Tool/Library development Pin
BrainlessLabs.com16-Nov-11 6:53
BrainlessLabs.com16-Nov-11 6:53 
QuestionEnumerating Registry Subkeys c++ Pin
Member 824522215-Nov-11 20:06
Member 824522215-Nov-11 20:06 
AnswerRe: Enumerating Registry Subkeys c++ Pin
Richard MacCutchan15-Nov-11 22:09
mveRichard MacCutchan15-Nov-11 22:09 
AnswerRe: Enumerating Registry Subkeys c++ Pin
User 742933815-Nov-11 22:14
professionalUser 742933815-Nov-11 22:14 
GeneralRe: Enumerating Registry Subkeys c++ Pin
Richard MacCutchan15-Nov-11 23:55
mveRichard MacCutchan15-Nov-11 23:55 
Questionsimple static library linking to dll issue. Pin
Android Lava15-Nov-11 16:32
Android Lava15-Nov-11 16:32 
AnswerRe: simple static library linking to dll issue. Pin
Richard MacCutchan15-Nov-11 22:04
mveRichard MacCutchan15-Nov-11 22:04 
AnswerRe: simple static library linking to dll issue. Pin
Chuck O'Toole16-Nov-11 5:41
Chuck O'Toole16-Nov-11 5:41 
AnswerRe: simple static library linking to dll issue. Pin
jschell16-Nov-11 10:00
jschell16-Nov-11 10:00 
QuestionURLDownloadToFile, Cancel Button Pin
jkirkerx15-Nov-11 15:09
professionaljkirkerx15-Nov-11 15:09 
AnswerRe: URLDownloadToFile, Cancel Button Pin
Chuck O'Toole15-Nov-11 16:19
Chuck O'Toole15-Nov-11 16:19 
Well, you could start a separate thread to do the URLDownloadToFile call and let the OnProcess (which I assume is your button) to return processing windows messages.

You would have to implement a "completion" message back from the thread to the main window to tell it when the download was complete and return the status of the download (success, fail, cancelled).

You cancel button should then work but, of course, you now need to tell the thread that the cancel button was hit or test a "cancelled" flag in the callback.
GeneralRe: URLDownloadToFile, Cancel Button Pin
jkirkerx15-Nov-11 16:32
professionaljkirkerx15-Nov-11 16:32 
AnswerRe: URLDownloadToFile, Cancel Button Pin
Chuck O'Toole15-Nov-11 17:01
Chuck O'Toole15-Nov-11 17:01 
GeneralRe: URLDownloadToFile, Cancel Button Pin
jkirkerx15-Nov-11 17:19
professionaljkirkerx15-Nov-11 17:19 

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.