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

C / C++ / MFC

 
GeneralRe: Standard for inlining code Pin
David Crow22-Sep-05 2:23
David Crow22-Sep-05 2:23 
AnswerRe: Standard for inlining code Pin
John R. Shaw21-Sep-05 21:20
John R. Shaw21-Sep-05 21:20 
QuestionInterfacing Pin
benjnp21-Sep-05 4:42
benjnp21-Sep-05 4:42 
AnswerRe: Interfacing Pin
Bob Stanneveld21-Sep-05 5:30
Bob Stanneveld21-Sep-05 5:30 
GeneralRe: Interfacing Pin
benjnp21-Sep-05 14:45
benjnp21-Sep-05 14:45 
GeneralRe: Interfacing Pin
Bob Stanneveld21-Sep-05 20:14
Bob Stanneveld21-Sep-05 20:14 
QuestionWindows Procedure Pin
benjnp21-Sep-05 4:36
benjnp21-Sep-05 4:36 
AnswerRe: Windows Procedure Pin
Blake Miller21-Sep-05 5:05
Blake Miller21-Sep-05 5:05 
Typically, you are either halted at something like GetMessage() or MsgWaitForMultipleObjects or else in wierd PeekMessage -> DoIdle() type of loop. Depends upon the udnerlying class library.
If you are straight Win32, I would start a secondary thread to do the scanning, and have it post registered messages back to your dialog to advise the dialog of the scanner's progress. If user hits cancel, then just stop thread and exit dialog. Similarly for a MFC app with a dialog.
Be sure to catch possible ways dialog can close, by handling the WM_CLOSE messages generated by escape key, ATL+F4, etc.

AnswerRe: Windows Procedure Pin
Bob Stanneveld21-Sep-05 5:34
Bob Stanneveld21-Sep-05 5:34 
QuestionWhy does a non-blocking socket get blocked when call connect? Pin
alvaro21-Sep-05 4:32
alvaro21-Sep-05 4:32 
QuestionLength of VARIANT V_BSTR Pin
Kreatief21-Sep-05 4:23
Kreatief21-Sep-05 4:23 
AnswerRe: Length of VARIANT V_BSTR Pin
Steen Krogsgaard21-Sep-05 23:51
Steen Krogsgaard21-Sep-05 23:51 
GeneralRe: Length of VARIANT V_BSTR Pin
Kreatief22-Sep-05 0:32
Kreatief22-Sep-05 0:32 
GeneralRe: Length of VARIANT V_BSTR Pin
Steen Krogsgaard22-Sep-05 0:49
Steen Krogsgaard22-Sep-05 0:49 
GeneralRe: Length of VARIANT V_BSTR Pin
Kreatief22-Sep-05 1:10
Kreatief22-Sep-05 1:10 
GeneralRe: Length of VARIANT V_BSTR Pin
Steen Krogsgaard22-Sep-05 1:26
Steen Krogsgaard22-Sep-05 1:26 
GeneralRe: Length of VARIANT V_BSTR Pin
Steen Krogsgaard22-Sep-05 1:33
Steen Krogsgaard22-Sep-05 1:33 
GeneralRe: Length of VARIANT V_BSTR Pin
Kreatief22-Sep-05 2:37
Kreatief22-Sep-05 2:37 
GeneralRe: Length of VARIANT V_BSTR Pin
Steen Krogsgaard22-Sep-05 2:41
Steen Krogsgaard22-Sep-05 2:41 
QuestionDisplay colour depth - what's the point? Pin
Taka Muraoka21-Sep-05 3:42
Taka Muraoka21-Sep-05 3:42 
AnswerRe: Display colour depth - what's the point? Pin
Chris Losinger21-Sep-05 4:18
professionalChris Losinger21-Sep-05 4:18 
GeneralRe: Display colour depth - what's the point? Pin
Taka Muraoka21-Sep-05 4:33
Taka Muraoka21-Sep-05 4:33 
GeneralRe: Display colour depth - what's the point? Pin
Chris Losinger21-Sep-05 4:39
professionalChris Losinger21-Sep-05 4:39 
GeneralRe: Display colour depth - what's the point? Pin
Taka Muraoka21-Sep-05 5:00
Taka Muraoka21-Sep-05 5:00 
GeneralRe: Display colour depth - what's the point? Pin
Shog921-Sep-05 6:12
sitebuilderShog921-Sep-05 6:12 

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.