D-Meson production from 400 GeV/c pp interactions