Gratitude changes how you see unfortunate circumstances. It gives you a new perspective.
Praise God even when your heart is broken, your dreams shattered and disappointment has sapped your strength. When you do, your problems become less important and your connection to God is greater.
You will be able to get past the self-centered emotional tug of "feelings" and go straight to what you absolutely know to be true: God is always deserving of gratitude.