GLUT problems... GRR

The frustration I always encounter when I try OpenGL/Win32/DirectX is unbearable. So, I'm gonna double post. I apologize. Anyway, this code should make a window of the specified size and title, yet it displays the normal console type window.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <windows.h>
#include <gl/gl.h>
#include <glut.h>

int main(int argc, char **argv)
{
    glutInit(&argc, argv);
    glutInitDisplayMode(GLUT_SINGLE);   //Sets up single buffered display
    glutInitWindowSize(500,500);        //Sets size of window to 500 x 500
    glutInitWindowPosition(100,100);    //Sets position for window at (100,100)
    glutCreateWindow("Whoo");           //Creates window

    return 0;
}


It took me a good hour just to get everything linked right, and then I hit this problem like 5 minutes after fixing that one. Sigh... Help would be much appreciated
I don't know glut, but if you have a console project the console window will be shown. So switch to a Win32 project.
You must specify in your project properties that this is a GUI project, not a console one. You started a blank project, didn't you?
Yea I started blank. I found out my problem though, and I guess these missing PDBs aren't a problem
Topic archived. No new replies allowed.