I want to resume errors in C++ as we do in Visual Basic
We write at the top of the code 'On Error Resume Next' and if there is any error in the whole program in run-time the error is resumed. similarly i want to do this in c++. Is there any way?
C++ has exception handling to deal with unforseen errors, see http://www.cplusplus.com/doc/tutorial/exceptions.html for some details on it.
As far as I know there is no direct equivelent of 'On Error Resume Next' (which, btw, Microsoft now advise against using in VB) which tries to just ignore the problem - which can be a very dangerous thing to do in C++!
Well designed exception handling allows you to deal with the majority of errors that occur such that your program continues in a safe manner.