Resolvents, dual pairs, and character formulas