Click here to Skip to main content
16,011,947 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: efficiency of list::push_back() Pin
Joaquín M López Muñoz16-Jul-02 8:26
Joaquín M López Muñoz16-Jul-02 8:26 
Questionwhat functions are used for ... Pin
includeh1016-Jul-02 7:17
includeh1016-Jul-02 7:17 
AnswerRe: what functions are used for ... Pin
Joaquín M López Muñoz16-Jul-02 8:29
Joaquín M López Muñoz16-Jul-02 8:29 
GeneralRe: what functions are used for ... Pin
includeh1016-Jul-02 9:10
includeh1016-Jul-02 9:10 
AnswerRe: what functions are used for ... Pin
Nish Nishant16-Jul-02 8:34
sitebuilderNish Nishant16-Jul-02 8:34 
AnswerRe: what functions are used for ... Pin
Joel Lucsy16-Jul-02 13:58
Joel Lucsy16-Jul-02 13:58 
GeneralSimple question Pin
achandra00716-Jul-02 6:32
achandra00716-Jul-02 6:32 
GeneralRe: Simple question Pin
Chris Losinger16-Jul-02 6:43
professionalChris Losinger16-Jul-02 6:43 
i see two options:

1. use a modeless dialog with a Stop button. when start is pressed, the modeless dialog is launched and processing starts. if Stop is pressed, it sets a flag (or sends a message, or uses one of the synchronization objects, like an Event) which the processing code is watching. the processing code stops, then removes the modeless dialog. there's code on this site that explains modeless dialogs.

2. when start is pressed, start a worker thread to do the processing. when stop is pressed, your code sets a flag (sends and event, whatever) that the processing code is watching. there are some multi-threading articles here, too.

i'd probably go with 2, since it's a little cleaner. but 1 is a perfectly acceptable way to go, to (IMO)

-c


To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses.
   /. #3848917

GeneralRe: Simple question Pin
achandra00716-Jul-02 6:53
achandra00716-Jul-02 6:53 
GeneralRe: Simple question Pin
Chris Losinger16-Jul-02 6:58
professionalChris Losinger16-Jul-02 6:58 
GeneralAdding to the control toolbar Pin
Anonymous16-Jul-02 6:11
Anonymous16-Jul-02 6:11 
General"New ATL Object..." is lost! Pin
DanielP16-Jul-02 6:04
DanielP16-Jul-02 6:04 
GeneralPlease help with CTabCtrl Pin
dennisV16-Jul-02 5:38
dennisV16-Jul-02 5:38 
GeneralEasy question, but im stuck. :) Pin
Anonymous16-Jul-02 5:26
Anonymous16-Jul-02 5:26 
GeneralRe: Easy question Pin
Schnemar16-Jul-02 6:04
Schnemar16-Jul-02 6:04 
GeneralRe: Easy question Pin
Daniel Turini16-Jul-02 8:34
Daniel Turini16-Jul-02 8:34 
GeneralRe: Easy question, but im stuck. :) Pin
Gary Kirkham16-Jul-02 8:02
Gary Kirkham16-Jul-02 8:02 
GeneralRe: Easy question, but im stuck. :) Pin
Anonymous16-Jul-02 9:37
Anonymous16-Jul-02 9:37 
Generalbasic socket question Pin
Anonymous16-Jul-02 4:46
Anonymous16-Jul-02 4:46 
GeneralRe: basic socket question Pin
Mike Nordell16-Jul-02 5:15
Mike Nordell16-Jul-02 5:15 
GeneralRe: basic socket question Pin
Anonymous16-Jul-02 6:01
Anonymous16-Jul-02 6:01 
GeneralRe: basic socket question Pin
JohnnyG16-Jul-02 12:53
JohnnyG16-Jul-02 12:53 
GeneralRe: basic socket question Pin
Dave_17-Jul-02 3:14
Dave_17-Jul-02 3:14 
GeneralAfxGetResourceHandle Pin
Jose Vicente16-Jul-02 4:35
Jose Vicente16-Jul-02 4:35 
GeneralRe: AfxGetResourceHandle Pin
joblemar16-Jul-02 5:09
sussjoblemar16-Jul-02 5:09 

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.