I already read in some questions that throwing an exception from a dll (or .so) and catching it from the executable is not easy or possible. I have a hobby project where the exe acts a library, that is, is the "functionality provider" for client dlls, more or less, this structure:
ExeProgram::method1() -> Dll::method2() -> ExeProgram::method3() [-> Dll::method4()]
So, my question is: how can a design a good execption design to achieve: - The dll may throw exceptions. - Exception catch should be in ExeProgram.
Is there any way in C++11 to achieve this design?