How do I go into compatibility mode to play it?
Right click the shortcut (or executable) and peruse to Properties - you'll find the options on the compatibility tab.
If I do go there will it affect my XP?
No, it will only affect the program you selected.