int _tmain(int argc, _TCHAR* argv[]) { { Derived derived; derived.DoSomething(); } cout << "Good bye!" << endl; return 0; }