I suspect you're using absolute pathnames. This would explain why they worked on Win98/ME, but not on XP.
Other possibility is that you're setting graphics mode AFTER loading the textures.
You might have to post some code.
Other possibility is that you're setting graphics mode AFTER loading the textures.
You might have to post some code.