CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2003
    Posts
    5

    Q about Emailing and Waiting

    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

  2. #2
    Join Date
    Dec 2001
    Location
    Ontario, Canada
    Posts
    2,236
    Use the Sleep function to wait for two hours. There are many examples here on emailing, look under internet or networking samples.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured