This means you tried hard, but it did not help. Your effort was wasted. You feel sad or disappointed because of this.
、に。
Despite having studied desperately, I failed the exam.
、。
I waited for two hours to no avail; she never showed up.
、。
Despite years of effort, his company went bankrupt.
、。
It was pointless rushing here; the meeting seems to be over already.
、。
Despite the medical treatment, my grandfather passed away.