0000899681-09-000709 Sample Contracts

Investment Advisory Agreement • September 30th, 2009 • Dreyfus Investment Funds • Massachusetts

AGREEMENT made as of this 1st day of December, 2008, between Dreyfus Investment Funds (formerly Mellon Institutional Funds Investment Trust), an unincorporated business trust organized under the laws of The Commonwealth of Massachusetts (the “Trust”), and The Dreyfus Corporation, a New York corporation (the “Adviser”).

Distribution Agreement • September 30th, 2009 • Dreyfus Investment Funds

This is to confirm that, in consideration of the agreements hereinafter contained, the above-named investment company (the “Fund”) has agreed that you shall be, for the period of this agreement, the distributor of (a) shares of each series of the Fund set forth on Exhibit A hereto, as such Exhibit may be revised from time to time (each, a “Series”) or (b) if no Series are set forth on such Exhibit, shares of the Fund. For purposes of this agreement the term “Shares” shall mean the authorized shares of the relevant Series, if any, and otherwise shall mean the Fund’s authorized shares.