You probably shouldn't edit away an existing post, it makes the thread hard to read and it's just disconcerting. Also if you have a new question, placing it in a new post will enable others to see that the thread has changed. I'd say that editing should be reserved for fixing typos and adding clarifications.
glOrtho() "[multiplies] the current matrix with an orthographic matrix" according to the docs. So in order to have it affect your viewport you need to apply it to the GL_PROJECTION matrix. (Essentially it's just like a glMultMatrix() call, which of course applies to the matrix corresponding to the current matrix mode.) And most other operations use GL_MODELVIEW so you should switch back after you call glOrtho(). So generally you'd use something like
Code:
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glOrtho(...);
glMatrixMode(GL_MODELVIEW);
You could have found that out in about forty-six seconds by googling "glortho example", by the way.