A topological method and its application on a general boundary value problem