Click to See Complete Forum and Search --> : Q about Emailing and Waiting


AlvanH
April 15th, 2003, 05:07 PM
Hi, I wonder if anyone could help me with the following two questions...

1. I want my program to run a function every two hours. How / what can I do to make it loop and do nothing for those two hours, and how do I set it to run the function after a certain time period?

2. If the function evaluates to true, I would like my app. to fire off an email to me. I can find code to do this in VB but am at a loss in C++ (I am a rank beginner in the world of C++). If it helps my email program is Groupwise.

Thanks
Al van H

mwilliamson
April 15th, 2003, 05:17 PM
Use the Sleep function to wait for two hours. There are many examples here on emailing, look under internet or networking samples.