Look, I'm sure you're pretty pissed off right now, but honestly, not all guys are like this. Some are kinda stupid and immature and don't realize that this might hurt your feelings. In those cases my suggestion is (for dating and friendships) to tell them how you feel, tell them off, or (if you're dating them) dump them, and in cases of this just being some guy you know, just disassociate yourself from them
Not all guys are all selfish and thoughtless. Hell, some of my answers on here, and you'd know at least I'm not. I've put in a lot of effort in my relationship. I'd put in a lot of effort into making my girlfriend happy, in and out of the bedroom. More than that, I know I'm not the only guy like me. So good guys are out there. You just have to keep trying.
Also, on the flipside of things, women can be cruel, manipulative, findfucking, lying, cheating, sluts. So all in all, I think the lesson you should take from this is that there are a lot of crappy people out there. Male and female. You just need to deal with it as it comes, deal with crappy people in your life as best you can, and if you can't, then toss them out and find new and better friends and lovers.
Anyway, I'm sorry you've had such bad luck. I hope whatever you do, you'll have better luck with guys in the future.