// 32_32-8.cpp : コンソール アプリケーションのエントリ ポイントを定義します。
//

#include "stdafx.h"
#include <iostream>
#include <windows.h>

using namespace std;

class bad_string {};

void tstfnc()
{
	throw bad_string();
}

int _tmain(int argc, _TCHAR* argv[])
{
	try {
		tstfnc();
	}
	catch (bad_string) {
		cout << "エラーが発生しました\n";	
	}

	MessageBox(NULL, _T("Check Console Window"), L"MessageBox", MB_OK);

	return 0;
}

