Charm and beauty production in strong interactions