Intermediate-boson and dilepton production in hadronic interactions