Click here to Skip to main content
15,918,808 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalusing MFC 6.0 in vc.net apps Pin
Luke Murray17-Nov-02 3:33
Luke Murray17-Nov-02 3:33 
GeneralRe: using MFC 6.0 in vc.net apps Pin
Michael P Butler18-Nov-02 0:30
Michael P Butler18-Nov-02 0:30 
GeneralUDP socket receive timeout Pin
User 665817-Nov-02 2:55
User 665817-Nov-02 2:55 
GeneralRe: UDP socket receive timeout Pin
Gary R. Wheeler17-Nov-02 4:34
Gary R. Wheeler17-Nov-02 4:34 
GeneralRe: UDP socket receive timeout Pin
User 665817-Nov-02 6:24
User 665817-Nov-02 6:24 
GeneralMoniker question Pin
Chen Jiadong17-Nov-02 2:04
Chen Jiadong17-Nov-02 2:04 
GeneralONTIMER Pin
Mavrock16-Nov-02 23:23
Mavrock16-Nov-02 23:23 
GeneralRe: ONTIMER Pin
Christian Graus16-Nov-02 23:47
protectorChristian Graus16-Nov-02 23:47 
Well, you can use WM_TIMER, but I wonder if you'd be better off figuring out how to poll the system clock. Obviously you still need to use a timer, but it would be more reliable than trusting the timer alone. Create an MFC project, dialog based, hit CTRL_W to bring up the class wizard, add an OnTimer message handler. In your initial code add something like:

SetTimer(42, 60000, NULL);

Then in your OnTimer, check the timer id to see if it's 42, if it is, check the time and then either reset the timer for another minute, or show your message box.


Christian

No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002

Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002

Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002
QuestionHow can i detect the current system XP color scheme Pin
Hamzeh16-Nov-02 20:36
Hamzeh16-Nov-02 20:36 
QuestionHow to make an ATL Control redraw after a Property Change Pin
Paul Farry16-Nov-02 18:45
professionalPaul Farry16-Nov-02 18:45 
AnswerRe: How to make an ATL Control redraw after a Property Change Pin
Paul Farry16-Nov-02 19:20
professionalPaul Farry16-Nov-02 19:20 
Questionhow many request per second ...? Pin
devvvy16-Nov-02 17:29
devvvy16-Nov-02 17:29 
AnswerRe: how many request per second ...? Pin
Christian Graus16-Nov-02 21:35
protectorChristian Graus16-Nov-02 21:35 
Generaldetecting SQL ALTER DATABASE Pin
devvvy16-Nov-02 17:24
devvvy16-Nov-02 17:24 
GeneralHELP - playback midi-notes (not files) Pin
trondb16-Nov-02 16:55
trondb16-Nov-02 16:55 
GeneralPredicting the rect of a dialog Pin
Wolfram Steinke16-Nov-02 16:41
Wolfram Steinke16-Nov-02 16:41 
GeneralRe: Predicting the rect of a dialog Pin
Gary R. Wheeler17-Nov-02 5:12
Gary R. Wheeler17-Nov-02 5:12 
GeneralPocket PC eVC and custom controls Pin
kati4216-Nov-02 16:24
kati4216-Nov-02 16:24 
GeneralDynamically resizing an edit control Pin
georgiek5016-Nov-02 15:59
georgiek5016-Nov-02 15:59 
GeneralRe: Dynamically resizing an edit control Pin
Christian Graus16-Nov-02 16:19
protectorChristian Graus16-Nov-02 16:19 
GeneralRe: Dynamically resizing an edit control Pin
georgiek5016-Nov-02 17:24
georgiek5016-Nov-02 17:24 
GeneralMFC Custom Control Pin
s o v a n n16-Nov-02 15:51
s o v a n n16-Nov-02 15:51 
GeneralRe: MFC Custom Control Pin
Anna :)18-Nov-02 2:14
Anna :)18-Nov-02 2:14 
GeneralUsing DLLs Pin
d.f16-Nov-02 15:22
d.f16-Nov-02 15:22 
GeneralRe: Using DLLs Pin
dabs17-Nov-02 3:18
dabs17-Nov-02 3:18 

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.