What's happening is you are stuck between the childhood desires to be taken care of and loved no matter what you do or how you act, and the mature understanding that the world doesn't work that way. You are in a battle with reality.
The best thing for you to do is not just take medication and not to just focus on your depression, but to come to a much deeper understanding of yourself but talking with a competent therapist. Don't waste this precious opportunity to grow out of this personal stalemate.
You can get some free help by going to my masteringstress site(link above). try a free session.