Charmed particle production in hadron-hadron collisions