Just don't laugh and be like "Man, if you aren't gay then why the fuck do you hate on women so much?"
I don't know guys that treat me like that. Maybe your hangin with the wrong crowd? My male friends respect me. They treat me like a lady but are still straight up with me (they arn't with dumb girls, those they treat like meat). It might not be the fact of your sex, but how your filling in their sterotype. Some girls act dumb to get attention from men (the wrong kind if you ask me) and then when they're done playing their game noone wants to believe they're intelligent and classy. Is that your problem? If not your hanging out with jerks (the kind who treat all women as stepping stones). Otherwise I would seriously take into considering what you are projecting.