Click here to Skip to main content
15,914,225 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: please: codes in number convert in to words Pin
Christian Graus13-Sep-06 19:05
protectorChristian Graus13-Sep-06 19:05 
JokeRe: please: codes in number convert in to words Pin
Steve S13-Sep-06 21:37
Steve S13-Sep-06 21:37 
AnswerRe: please: codes in number convert in to words Pin
Hamid_RT13-Sep-06 19:21
Hamid_RT13-Sep-06 19:21 
AnswerRe: please: codes in number convert in to words Pin
David Crow14-Sep-06 3:31
David Crow14-Sep-06 3:31 
QuestionReading details from outlook address book Pin
Steverty13-Sep-06 15:35
Steverty13-Sep-06 15:35 
AnswerRe: Reading details from outlook address book Pin
_AnsHUMAN_ 13-Sep-06 17:26
_AnsHUMAN_ 13-Sep-06 17:26 
QuestionJust how evil is SetTimer and timers in dialogs and when should they be cleaned up? Pin
charlieg13-Sep-06 12:25
charlieg13-Sep-06 12:25 
AnswerRe: Just how evil is SetTimer and timers in dialogs and when should they be cleaned up? Pin
Gary R. Wheeler13-Sep-06 15:07
Gary R. Wheeler13-Sep-06 15:07 
I've used SetTimer extensively, and not had it cause the problem you describe. The reason most people have problems with it is that they expect it to be accurate. Windows' handling of WM_TIMER messages is such that they don't occur at the interval you expect. BTW, you don't need to issue a KillTimer() when you exit your dialog.

Rather than deallocating things and releasing resources in the destructor for my CDialog objects, I usually override PostNcDestroy() for that sort of thing. This seems to match up better with initialization performed in an OnInitDialog() override. It also works better when you re-use a given CDialog-derived object.


Software Zen: delete this;

GeneralRe: Just how evil is SetTimer and timers in dialogs and when should they be cleaned up? Pin
charlieg13-Sep-06 15:18
charlieg13-Sep-06 15:18 
GeneralRe: Just how evil is SetTimer and timers in dialogs and when should they be cleaned up? Pin
charlieg13-Sep-06 15:23
charlieg13-Sep-06 15:23 
GeneralRe: Just how evil is SetTimer and timers in dialogs and when should they be cleaned up? Pin
Gary R. Wheeler14-Sep-06 1:19
Gary R. Wheeler14-Sep-06 1:19 
GeneralRe: Just how evil is SetTimer and timers in dialogs and when should they be cleaned up? Pin
charlieg14-Sep-06 1:38
charlieg14-Sep-06 1:38 
AnswerRe: Just how evil is SetTimer and timers in dialogs and when should they be cleaned up? Pin
Michael Dunn13-Sep-06 21:18
sitebuilderMichael Dunn13-Sep-06 21:18 
Questionusing *.exe file such az static library Pin
asdf175313-Sep-06 9:25
asdf175313-Sep-06 9:25 
AnswerRe: using *.exe file such az static library Pin
Zac Howland13-Sep-06 9:46
Zac Howland13-Sep-06 9:46 
QuestionOpening a USB keyboard when Windows already has it open? Pin
David Knechtges13-Sep-06 8:29
David Knechtges13-Sep-06 8:29 
QuestionRe: Opening a USB keyboard when Windows already has it open? [modified] Pin
plineaRenade27-Jan-07 10:10
plineaRenade27-Jan-07 10:10 
QuestionMissing Virtual Functions in Properties/Overrides Pin
bob1697213-Sep-06 7:52
bob1697213-Sep-06 7:52 
AnswerRe: Missing Virtual Functions in Properties/Overrides Pin
prasad_som13-Sep-06 19:18
prasad_som13-Sep-06 19:18 
GeneralRe: Missing Virtual Functions in Properties/Overrides Pin
bob1697214-Sep-06 3:21
bob1697214-Sep-06 3:21 
QuestionC++ createProcess wceload on PocketPC [modified] Pin
sMaggi13-Sep-06 6:41
sMaggi13-Sep-06 6:41 
Questionimage as background in ListView Pin
Sigmac13-Sep-06 6:23
Sigmac13-Sep-06 6:23 
AnswerRe: image as background in ListView Pin
Michael Dunn13-Sep-06 7:37
sitebuilderMichael Dunn13-Sep-06 7:37 
GeneralRe: image as background in ListView Pin
Sigmac13-Sep-06 8:45
Sigmac13-Sep-06 8:45 
GeneralRe: image as background in ListView Pin
Sigmac13-Sep-06 11:16
Sigmac13-Sep-06 11:16 

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.