OpenGL scaling help reqd.

Needless I say I am a novice. I am trying to scale world coordinates to screen ones. These are ranging from -80 to -40(X) and 15 to 25(y). Where do I give setwindow and setViewPort? They are not working if I set them in display callback function.
Thabks for any suggestions.
Please treat this as urgent.