#include "stdafx.h" using namespace System; int main() { try { // ... } catch( Exception^ ) { } finally { Console::WriteLine("finally block!"); } }