You might have some issue with winpic software. If I remember correctly, there's a slight difference in the programming between 16F877 and 16F877A.
Make sure winpic support the A version or you select it before programming your PIC, and try to do a programming check.
Bookmarks