Help for gluUnProject

I am trying to get the world coordinates (gluOrtho2D) from window coordinates.

Can someone refer me to some code using gluUnProject to do this?

Thanks.

Try this example:

“Converting from window to world coordinates”:
http://www.cs.uaf.edu/~cs381/docs/unproject.cpp