Production of charmed mesons in ?? interactions