MattyRobot 22 Junior Poster in Training

hi again:).
I'm not 100% sure what you mean by

window's size in the view port

but here is my resize handling code

void Window::UpdateGLProjection()
{
	GetDimensions();
	if(fullscreen == true)
    {
        glViewport(0, 0, ScreenWidth, ScreenHeight);
    }
    else
    {
    	if(ClientHeight == 0)
    	{
    		ClientHeight = 1;
		}
		glViewport(0, 0, ClientWidth, ClientHeight);
	}

	glMatrixMode(GL_PROJECTION);
	glLoadIdentity();

	if(dimensions == 2)
	{
		glOrtho(0, WorldWidth, WorldHeight, 0, -1, 1);
	}
	else if(dimensions == 3)
	{
		gluPerspective(45, float(ClientWidth) / float(ClientHeight), 0, 100);
	}
	else
	{
		MessageBox(NULL, "Invalid Number Of Dimensions", "ERROR", MB_OK | MB_ICONEXCLAMATION);
	}

	glMatrixMode(GL_MODELVIEW);
	glLoadIdentity();

return;
}

as you would expect, when I use glOrtho, everything is stretched, but not when using gluPerspective

(50 posts!!!)

MattyRobot 22 Junior Poster in Training

got it.
before you use remove, you have to use cipher.close() and plainText.close()

MattyRobot 22 Junior Poster in Training

http://www.daniweb.com/forums/thread510.html
maybe
and i compiled it and it doesn't work for me either