December 22nd, 2012, 02:54 PM
Messagebox at different times
I'm trying to get a messagebox to pop up in windows at certain times to remind me to take my medicine(like medicine 1 at 5pm,2 at 8pm 3 at 9pm 4 at 11),This is in C++ Builder 6 and I'm not sure if I need a timer function or what... Any suggestions?
December 23rd, 2012, 01:50 AM
I am not that familiar with C++ builder, so I might be wrong. It's years ago last time I used it. But I believe you have a Timer component. Use it to check the time every30 or 60 secs. In the time is when you need to be reminded, then pop up a ShowMessage or MessageDlg.
There is more efficient way to do this, however. Using windows api wait functions. But it's a little bit more difficult. Much easier to use the above approach.