A basic tutorial is what you need. The very first one here will solve the problems you have.
edit: Well, was a little bit too quick there. It won’t really take care of the problems directly, but indirectly. It’s really a basic problem about setting up an OpenGL project, and that’s what that tutorial is about.
[This message has been edited by Bob (edited 02-01-2004).]