Read "Codependency No More" by Melanie Beatty. It's the gospel when it comes to understanding codependency.

Have you seen a therapist? I think that would help you out.