Hi,
The code targets the 18F4550 so I'm guessing that's it. PortC4-5 are the USB-pins which is probably why they can't be made into normal outputs - for some specific reason.

/Henrik.