Welcome to the forums. You will need a little bit more code than that in order to make a successful program. What language are you using?
It would be worth looking at Nigel's site WinPicProg Page. He has some very good tutorials that explain how to wire up the hardware. He also uses a more up-to-date PIC that is still produced.