simple application framework in c++