Or post your code if you have any problems.
you should not have to make changes except if you are using interupts
and also remember that you have to define your osc speed as 40 not 10mhz

Toni