Your problem is not directly related to using DJGPP with WinXP.

Check the DJGPP FAQ. You must set the DJGPP environment variable in your autoexec.bat, if WinXP allows you to have an autoexec.bat