I just downloaded the code (LCDbar_AD_Demo) from the second post and it compiled just fine.

The code tries to set the CONFIG bits so for now, try commenting out or deleting the very first line:
Code:
 ' @ __CONFIG _CONFIG1H, _OSCS_OFF_1H & _HS_OSC_1H   ' <-- Comment this line. Set oscillator to (HS)
I don't think this is the problem but I hope so because if it's not I have no idea :-(