PDA

View Full Version : I cant open graphic windows in vc++6



shay ophir
03-30-2004, 12:10 PM
thank you in advance,
I downloaded all the download dll,lib and h files
and I have no compiler errors

but when I use the function "glutCreateWindow"
or "auxInitWindow"
the program exit with code 1
I don't know where is the problem.
here is the code:

int main(int argc, char** argv)

{

glutInit(&argc,argv);

glutInitDisplayMode(GLUT_RGB | GLUT_DEPTH);

glutInitWindowSize(500,500);

glutInitWindowPosition(0,0);

glutCreateWindow("Simple");

return 0;

/* ... */

}

and here is what I get

First-chance exception in firstp.exe (NTDLL.DLL): 0xC0000005: Access Violation.
The thread 0xC30 has exited with code 1 (0x1).
The program 'D:\A_PROTEIN\TEMP\firstp\Debug\firstp.exe' has exited with code 1 (0x1).

Andrew Davey
03-30-2004, 01:02 PM
please refer to the other topic of the same problem, have tried to answer there