The properties of discrete X-ray sources in star-forming galaxies