Remote control with C++