Charm D-meson production in 360GeV/c pp interactions; comparison with pi-p at the same energy