TOO bad... it's a Melabs PICBasic forum, not C

and...
I read that some other pics showed this problem with MPLAB compatible programmers, but I have tried all the receipes (1-10K loading MCLR to GND, C 0.1µF from Vdd to Vss, ALL Vdd pins joined, ... ) and nothing seems to cure the problem.
MCLR to Vdd. PGM loaded to gnd via resistor.

something like


on Melabs website : http://melabs.com/support/icsp.htm