I was afraid you were?
If the program performs as expected in Proteus, but not in the physical circuit, it is most likely an issue with configuration bit/fuse, clock frequency or some other settings.
What version of MicroC and PICFlash are you using?
---------- Post added at 18:48 ---------- Previous post was at 18:45 ----------
Looking back over the thread, I just notice your were using a JDM programmer. Does this require the use of a separate GUI programmer interface other than PICFlash?