HERA-B is a fixed target experiment at the 920 GeV HERA proton beam at DESY which uses a variety of nuclear targets. During the last data-taking period 200 million minimum bias triggered events were recorded along with a similar number of dilepton triggered events. From the minimum bias data clean samples of D0 → K−π+ + c.c., D+ → K−π+π+ + c.c. and D*+ → D0π+ → K−π+π+ + c.c. have been obtained. About 530k K*0 → K+π− + c.c. and 50k ϕ → K+K− decays have also been reconstructed. These samples allow measurements of D0 and D+ production cross sections and their ratio R(D+/D0). In addition, detailed studies of the production mechanisms of strange resonances production at mid-rapidity were measured.