Click here to Skip to main content
15,919,879 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralImporting existing Dialog interfaces into a new SDI application. Pin
Kimball M. Rudeen29-May-01 13:05
Kimball M. Rudeen29-May-01 13:05 
GeneralRe: Importing existing Dialog interfaces into a new SDI application. Pin
Christian Graus29-May-01 13:12
protectorChristian Graus29-May-01 13:12 
GeneralTimer in a Dialog Box Pin
RobJones29-May-01 12:54
RobJones29-May-01 12:54 
GeneralRe: Timer in a Dialog Box Pin
Christian Graus29-May-01 13:07
protectorChristian Graus29-May-01 13:07 
GeneralRe: Timer in a Dialog Box Pin
RobJones29-May-01 13:30
RobJones29-May-01 13:30 
GeneralRe: Timer in a Dialog Box Pin
Christian Graus29-May-01 13:47
protectorChristian Graus29-May-01 13:47 
GeneralRe: Timer in a Dialog Box Pin
29-May-01 14:43
suss29-May-01 14:43 
GeneralRe: Timer in a Dialog Box Pin
Christian Graus29-May-01 14:53
protectorChristian Graus29-May-01 14:53 
When you call UpdateData at the top, it pulls down the values into the variables. It's often a good idea to use <= if the value is decrementing rather than ==. There is no reason why, if you call UpdateData properly, you cannot do comparisons on this variable, in the same way you are passing it to a formatting function. It's probably time for you to do some tracing and see what is going on.

If you type TRACE("%d %s\n\r", m_timer(whatever it's called), m_StrTimer); and debug, you will get an output that shows you the values you are dealing with. That should give you a good idea why the values are failing to compare, both as a string and an integer.

Also, if you made the time a float, it will never *equal* 55, it will simply be less than 56 Smile | :) Other than that, without having the source here, I'm not sure what is going on.

Christian

#include "std_disclaimer.h"

People who love sausage and respect the law should never watch either one being made.

The things that come to those who wait are usually the things left by those who got there first.
GeneralRe: Timer in a Dialog Box Pin
RobJones30-May-01 6:03
RobJones30-May-01 6:03 
GeneralRe: Timer in a Dialog Box Pin
RobJones30-May-01 8:53
RobJones30-May-01 8:53 
General"Preloading" a driver Pin
29-May-01 12:12
suss29-May-01 12:12 
General'default' button Pin
29-May-01 11:03
suss29-May-01 11:03 
GeneralRe: 'default' button Pin
Hesham Desouky29-May-01 20:26
Hesham Desouky29-May-01 20:26 
GeneralMFC custom control with child Pin
Kayan29-May-01 10:17
Kayan29-May-01 10:17 
GeneralRe: MFC custom control with child Pin
Michael A Barnhart30-May-01 12:02
Michael A Barnhart30-May-01 12:02 
GeneralMFC MDI 2nd main window problem Pin
Peter Jones29-May-01 10:07
Peter Jones29-May-01 10:07 
GeneralExplorer does not load shell extension.. Pin
J Patel29-May-01 9:06
J Patel29-May-01 9:06 
GeneralRe: Explorer does not load shell extension.. Pin
Michael Dunn29-May-01 9:38
sitebuilderMichael Dunn29-May-01 9:38 
GeneralRe: Explorer does not load shell extension.. Pin
J Patel29-May-01 9:47
J Patel29-May-01 9:47 
GeneralWebBrowser document Automation capabilities. Pin
Alex Chmakotine29-May-01 8:15
Alex Chmakotine29-May-01 8:15 
GeneralDialog to Doc or Dialog to View update Pin
29-May-01 7:39
suss29-May-01 7:39 
GeneralRe: Dialog to Doc or Dialog to View update Pin
Christian Graus29-May-01 13:16
protectorChristian Graus29-May-01 13:16 
GeneralGetting links in Internet Explorer Pin
Crocmort29-May-01 6:44
Crocmort29-May-01 6:44 
GeneralRe: Getting links in Internet Explorer Pin
Ghazi H. Wadi29-May-01 7:26
Ghazi H. Wadi29-May-01 7:26 
GeneralDDBs, DIBs and printing Pin
Richard Jones29-May-01 6:37
Richard Jones29-May-01 6:37 

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.