Don't give up, determination does pay off. I know someone who was in a similar situation and stuck to it, eventually getting the highest grade in the class and a rec from the prof that taught the course. He is in med school now. Just make sure that everything else in your application is above reproach.