Following my previous question about sheaf cohomology, I'd like to ask about its applications to algebraic geometry. I have now learned a little about homological algebra and I can see that for ordinary topological spaces $X$, $$H^0(X, A) \cong \Gamma(X, \Delta(A))$$ where $A$ is any abelian group, $\Delta(A)$ is the constant sheaf of $A$ on $X$, and the $H^0$ appearing on the LHS refers to singular cohomology, so it is quite plausible to me that the higher cohomology groups should also coincide.
Of course, the trouble is that a scheme is more than just a topological space; in some sense the underlying space is irrelevant and simply provides a setting on which the structure sheaf can be defined. How does one recapture the traditional geometric invariants of, say, a complex variety in the world of algebraic geometry?
To be a bit more precise, suppose $X$ is a smooth projective algebraic variety over $\mathbb{C}$, viewed as a scheme. It seems highly implausible to me that $H^i(X, \mathbb{Z})$ (in the sense of either singular cohomology or sheaf cohomology) should yield anything of interest, given the coarseness of the Zariski topology. However, as I understand it, it is still possible to compute geometric invariants (e.g. Euler characteristic, genus, Betti numbers) of the associated complex manifold using the machinery of algebraic geometry. How is this done, and why does it work?
I really haven't learned very much about algebraic geometry (or its history), so forgive me if I'm asking questions about some very deep results!