Click here to Skip to main content
16,006,768 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Start a help file from MFC Pin
HENDRIK R20-Jan-03 4:50
HENDRIK R20-Jan-03 4:50 
GeneralRe: Start a help file from MFC Pin
mickelthepickle20-Jan-03 5:06
mickelthepickle20-Jan-03 5:06 
GeneralRe: Start a help file from MFC Pin
Jim Crafton20-Jan-03 8:11
Jim Crafton20-Jan-03 8:11 
GeneralStrange Win32 Paint Problem! Pin
SeNs20-Jan-03 3:57
SeNs20-Jan-03 3:57 
QuestionMulti threading with one processor?? Pin
boon kian20-Jan-03 3:11
boon kian20-Jan-03 3:11 
AnswerRe: Multi threading with one processor?? Pin
jhwurmbach20-Jan-03 3:13
jhwurmbach20-Jan-03 3:13 
AnswerRe: Multi threading with one processor?? Pin
Mike Nordell20-Jan-03 3:39
Mike Nordell20-Jan-03 3:39 
AnswerRe: Multi threading with one processor?? Pin
Nitron20-Jan-03 3:51
Nitron20-Jan-03 3:51 
I agree with the above posts, but there are some things you may want to consider...


First, the user usually despises apps that appear "frozen" and unresponsive. If you go calling a time-consuming data reduction function from the main UI thread, your app will appear to "hang" during processing. If you don't pump update messages and redraw the screen, the user can slide another window over your app, and your app will just appear blank and dead.

However, don't go off spawning 20 threads to process your stuff either! I would definately consider putting the data reduction algorithms in a seperate "worker" thread, and pumping progress messages from within it. Although you won't gain any speed (or may actually lose some), it is most likely in the best interest of the user.

This will keep your UI happy and responsive, and the world will be a better place Roll eyes | :rolleyes:




- Nitron


"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
AnswerRe: Multi threading with one processor?? Pin
Ted Ferenc20-Jan-03 4:07
Ted Ferenc20-Jan-03 4:07 
GeneralRe: Multi threading with one processor?? Pin
Nitron20-Jan-03 8:35
Nitron20-Jan-03 8:35 
GeneralRe: Multi threading with one processor?? Pin
Ted Ferenc20-Jan-03 9:22
Ted Ferenc20-Jan-03 9:22 
Generalcapture content of directx window Pin
Joerg Wiedenmann20-Jan-03 2:49
Joerg Wiedenmann20-Jan-03 2:49 
GeneralRe: capture content of directx window Pin
Mike Nordell20-Jan-03 2:56
Mike Nordell20-Jan-03 2:56 
GeneralRe: capture content of directx window Pin
Joerg Wiedenmann21-Jan-03 0:01
Joerg Wiedenmann21-Jan-03 0:01 
GeneralRe: capture content of directx window Pin
Joerg Wiedenmann21-Jan-03 0:02
Joerg Wiedenmann21-Jan-03 0:02 
GeneralPlugin System in Visual C++ Pin
albuemil20-Jan-03 2:46
albuemil20-Jan-03 2:46 
GeneralRe: Plugin System in Visual C++ Pin
User 665820-Jan-03 3:29
User 665820-Jan-03 3:29 
GeneralRe: Plugin System in Visual C++ Pin
albuemil20-Jan-03 4:12
albuemil20-Jan-03 4:12 
GeneralRe: Plugin System in Visual C++ Pin
User 665820-Jan-03 4:30
User 665820-Jan-03 4:30 
GeneralRe: Plugin System in Visual C++ Pin
albuemil20-Jan-03 5:11
albuemil20-Jan-03 5:11 
GeneralRe: Plugin System in Visual C++ Pin
Ryan B.20-Jan-03 3:41
Ryan B.20-Jan-03 3:41 
GeneralRe: Plugin System in Visual C++ Pin
Todd Smith20-Jan-03 8:56
Todd Smith20-Jan-03 8:56 
QuestionWhat kind of project should I create? Pin
LittleYellowBird20-Jan-03 2:43
LittleYellowBird20-Jan-03 2:43 
AnswerRe: What kind of project should I create? Pin
jhwurmbach20-Jan-03 3:11
jhwurmbach20-Jan-03 3:11 
GeneralRe: What kind of project should I create? Pin
LittleYellowBird20-Jan-03 4:23
LittleYellowBird20-Jan-03 4:23 

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.