It's so easy to get caught up with everything that's wrong with your life. It's also equally easy for people to lecture you that there's always a silver lining, that there's a positive side to things. But I guess that the most useful truth to remember is this: nothing is permanent. Not your relationships, not your problems, and not your life, even. Everything ends eventually. You can either look forward to the ending, or to the beginning of something new and perhaps even better.
You just need to hold on and enjoy the ride. :)