I'm trying to write a simple program for myself that will activate the e-mail reception during daytime and it will deactivate it at night. The idea is write some code that does something like this: 7am --> Activate e-mail reception each 5 minutes 9pm --> Deactivate e-mail reception (set it to manual) I've had a look at C#, but I didn't found anything quite useful (POOM it's not an option, or at least I hadn't seen how to do it). Then I thought about writing a small class on C++ and call it from a C# program (much easier for GUI), and I start having lots of compiling problems (well mainly linking problems). Any idea where to start with? where to look at?