Click here to Skip to main content
15,916,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: LNK2001 Error Using Edit Control Variable in static function Pin
CNewbie9-Jun-05 1:19
CNewbie9-Jun-05 1:19 
GeneralRe: LNK2001 Error Using Edit Control Variable in static function Pin
Bob Stanneveld9-Jun-05 1:29
Bob Stanneveld9-Jun-05 1:29 
GeneralRe: LNK2001 Error Using Edit Control Variable in static function Pin
CNewbie9-Jun-05 1:23
CNewbie9-Jun-05 1:23 
GeneralRe: LNK2001 Error Using Edit Control Variable in static function Pin
Bob Stanneveld9-Jun-05 1:30
Bob Stanneveld9-Jun-05 1:30 
GeneralRe: LNK2001 Error Using Edit Control Variable in static function Pin
David Crow9-Jun-05 2:29
David Crow9-Jun-05 2:29 
GeneralRe: LNK2001 Error Using Edit Control Variable in static function Pin
CNewbie9-Jun-05 5:09
CNewbie9-Jun-05 5:09 
GeneralRe: LNK2001 Error Using Edit Control Variable in static function Pin
David Crow9-Jun-05 5:16
David Crow9-Jun-05 5:16 
GeneralModeless dialogs and Edit Boxes Pin
Kiriko8-Jun-05 22:05
Kiriko8-Jun-05 22:05 
Hi
I have this supposedly simple problem.

I need my program to do some complicated calculations in response to some user interaction. While the thing is calculating, usually, it just sits there and doesn't take anymore inputs until it's done. This can take a few seconds. To remind the user that the program is thinking hard, I want to pop up a modeless dialog with messages like "obtaining parameters" and "performing a monstrous calculation".

So,

1) I popup a innocent looking dialog with a "create" and "show".

2) I set its title to whatever calculation it's supposed to be performing at the time.

3) I set the text of the edit box on this dialog to a more detailed description of what's happening inside the program as the calculation progress.

4) When the calculation is done, I put away the dialog.

All except number 3) (which is the important bit!) work. WHY??? I'm using a humble "SetWindowText" function which has worked fine a hundred times in the past! Any ideas what I might have missed? Or any ideas how I can look up this problem on the net?

Cheers

KK
GeneralRe: Modeless dialogs and Edit Boxes Pin
GDavy8-Jun-05 22:53
GDavy8-Jun-05 22:53 
GeneralRe: Modeless dialogs and Edit Boxes Pin
Kiriko9-Jun-05 0:28
Kiriko9-Jun-05 0:28 
GeneralRe: Modeless dialogs and Edit Boxes Pin
David Crow9-Jun-05 2:32
David Crow9-Jun-05 2:32 
GeneralRe: Modeless dialogs and Edit Boxes Pin
Kiriko9-Jun-05 6:19
Kiriko9-Jun-05 6:19 
GeneralRe: Modeless dialogs and Edit Boxes Pin
David Crow10-Jun-05 5:59
David Crow10-Jun-05 5:59 
Generalpointer to member function.Error Pin
ascom28-Jun-05 21:57
ascom28-Jun-05 21:57 
GeneralRe: pointer to member function.Error Pin
GDavy8-Jun-05 22:58
GDavy8-Jun-05 22:58 
GeneralRe: pointer to member function.Error Pin
ascom29-Jun-05 0:20
ascom29-Jun-05 0:20 
GeneralCRichEdit::ReplaceSel() strange behavior Pin
Salvador Dali8-Jun-05 20:48
Salvador Dali8-Jun-05 20:48 
GeneralCRichEdit even stranger behavior Pin
Salvador Dali8-Jun-05 22:18
Salvador Dali8-Jun-05 22:18 
GeneralRe: CRichEdit::ReplaceSel() strange behavior Pin
David Crow9-Jun-05 2:36
David Crow9-Jun-05 2:36 
Questionhow to detect os remotely Pin
Girish6018-Jun-05 20:02
Girish6018-Jun-05 20:02 
AnswerRe: how to detect os remotely Pin
David Crow9-Jun-05 2:40
David Crow9-Jun-05 2:40 
GeneralRe: how to detect os remotely Pin
Girish6019-Jun-05 23:42
Girish6019-Jun-05 23:42 
GeneralRe: how to detect os remotely Pin
David Crow10-Jun-05 5:56
David Crow10-Jun-05 5:56 
Generallicensing software Pin
ask_you8-Jun-05 19:46
ask_you8-Jun-05 19:46 
GeneralRe: licensing software Pin
Nilesh K.8-Jun-05 21:33
Nilesh K.8-Jun-05 21:33 

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.