We compute the exact two-sphere, disk and real projective plane partition functions of two-dimensional supersymmetric theories using the localization technique. From these new results, we will attack old and new important problems in the string theory on Calabi-Yau spaces, and D-branes and Orientifold planes therein.