How can I write code that will catch an exeption, if I don't know what to expect?

Ex, in C# I can do this:

Code:
try
{
//lot of code
}
			catch (Exception ex)
            {
				Console.Write("error: {0}",ex.ToString();
            }
Is there a way to do this in C++? Often, it's not known what type of exception can be thrown, so it's hard to try to catch specific ones, and often times some can be missed, especially when using 3rd party libraries.