I had to learn it through horrible, long-term experince. If I'm wrong, please correct me, but I don't think I am.
If you want to be with a woman, be more than her friend....you can't be her friend.
Not at first of course. Being a woman's friend, listening to her problems...thats the surest way...