Visit the getting started thread.
I can't help you with code unless you post what you have but:
1) Uninstall and re-install the latest version of IFI Loader.
You can find the software at
www.ifirobotics.com and
www.kevin.org/frc
If you don't have your compiler and MPLABS installed correctly, uninstall and re install correctly from the CD you got at kickoff.