Update CApp.cpp