Hello, good day. I have some questions about your project. I've never used MikroC but i know PIC16F family and MPLAB very well. First of all, your code seems incomplete, you are missing lcd library. The code you using is a manual example for HD44780 interfaced LCD, so i guess thats the kind of LCD you using. Said this, i can guess the library you using, but id rather you confirming me which library are you using. Second, i havent checked the operation of your project, so ill have to ask you if you are sure that its working correctly in MikroC before converting to MPLAB standard.
Since now, thanks for reading and i hope to hear from you soon.