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

C / C++ / MFC

 
GeneralRe: Compiler Error / math.h Pin
Roger Allen17-May-04 3:48
Roger Allen17-May-04 3:48 
GeneralRe: Compiler Error / math.h Pin
harwanegg17-May-04 5:34
harwanegg17-May-04 5:34 
GeneralDistributed, Concurrent, Networking Programming Pin
nguyenvhn17-May-04 1:04
nguyenvhn17-May-04 1:04 
GeneralRe: Distributed, Concurrent, Networking Programming Pin
valikac17-May-04 6:51
valikac17-May-04 6:51 
GeneralQuestion on Menu Events Pin
Abin17-May-04 0:30
Abin17-May-04 0:30 
GeneralRe: Question on Menu Events Pin
Michael Dunn17-May-04 0:45
sitebuilderMichael Dunn17-May-04 0:45 
GeneralRe: Question on Menu Events Pin
Abin17-May-04 3:42
Abin17-May-04 3:42 
GeneralXP stops updating my windows ... Pin
Martin Steiner17-May-04 0:24
Martin Steiner17-May-04 0:24 
The Problem:
I have a lot of old code which (unfortunately) isn't thread based.
A click to a button causes an action or calculation wich may last some time - say 1 - 3 minutes for example. I use progress bars to communicate the advance of the process to the user.

Since XP I have the problem, that everything (the progress bar) stucks up if I am activating another window and switch back to the original one (only a white screen).
In 2000 the program beaves different. If I try to activate another window of the same application, or try to close the application, windows says that the programm is not reacting. If I click abort -> the progess bar keeps running. Switching to another application and back does not work in 2000.

Solution:
Redesing the Code to run in threads.

Question:
Is there another, simpler way to accomplish the update? I guess, I have to call the message handler function of the active window or give the OS some time to accomplish all window - events.

Can anybody help me? A simple Answer: "There is no way, you have to use threads, would be enogh".

Thanks a lot.


GeneralRe: XP stops updating my windows ... Pin
Michael Dunn17-May-04 0:47
sitebuilderMichael Dunn17-May-04 0:47 
GeneralMake Enter key move focus like Tab key for CFormview Pin
kritsakon17-May-04 0:11
kritsakon17-May-04 0:11 
GeneralRe: Make Enter key move focus like Tab key for CFormview Pin
Steve S17-May-04 1:00
Steve S17-May-04 1:00 
QuestionHow to prevent wininet from writing cookies automatically? Pin
microsea17-May-04 0:04
microsea17-May-04 0:04 
GeneralChanging colour of Dropdown list Pin
Alton Williams16-May-04 23:47
Alton Williams16-May-04 23:47 
GeneralSending messages to CDateTimeCtrl using Buttons Pin
Andrew Whittle16-May-04 23:36
Andrew Whittle16-May-04 23:36 
GeneralRe: Sending messages to CDateTimeCtrl using Buttons Pin
valikac17-May-04 6:52
valikac17-May-04 6:52 
Questionhow to format a floppy disk? Pin
Shuang. Wu16-May-04 23:25
Shuang. Wu16-May-04 23:25 
AnswerRe: how to format a floppy disk? Pin
Alexander M.,16-May-04 23:58
Alexander M.,16-May-04 23:58 
GeneralRe: how to format a floppy disk? Pin
Shuang. Wu17-May-04 14:54
Shuang. Wu17-May-04 14:54 
GeneralCMD access Pin
contemptx16-May-04 22:57
contemptx16-May-04 22:57 
GeneralRe: CMD access Pin
Alexander M.,16-May-04 23:56
Alexander M.,16-May-04 23:56 
GeneralRe: CMD access Pin
David Crow17-May-04 2:40
David Crow17-May-04 2:40 
GeneralGetting the text of the MS Access SQL-View Edit Pin
steven1116-May-04 22:28
steven1116-May-04 22:28 
GeneralProblem with _beginthread Pin
Stephan Pilz16-May-04 21:57
Stephan Pilz16-May-04 21:57 
GeneralRe: Problem with _beginthread Pin
valikac17-May-04 6:54
valikac17-May-04 6:54 
GeneralRe: Problem with _beginthread Pin
Stephan Pilz17-May-04 20:06
Stephan Pilz17-May-04 20:06 

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.