Magnetic and Chemical Ordering in the NiPt and the CoPt Systems