Many Thanks Steve, I had the chance to play around again yesterday. I still manage to get some unsuccessful builds. Basically what i do is, create the basic program using Codestudio, i then compile it. Then i switch to MPLAB and create my project using the Project Wizard. I have tried using both, the Microengineering Language Tools and the Microchip tools as the suite to build and program. Whichever i seem to use first, i get a failed build, so i end up having to switch and build again. This is then always successful. There always seems to be a problem with a xx.cod file. Apart from that i have managed to get there in the end.