Right, problem fixed. I did a repair install of xp, and the problem has gone.
Apparently the virus checker I used was far too aggressive and ate up some obviously important files.
The virus software was AntiVir Personal Edition.