Use CShowActivity2 instead of ShowActivity2.