PDA

View Full Version : glut and message box's



jono_123
09-27-2002, 12:28 AM
hi there
i used to use gcc to compile my glut programs and i jsut typed in -mwindows in the compiler options box and that would remove the dos box
now i'm using vc++ and i use the console project and i remove the dos box
but when i try to use messagebox ,im not sure if that's how the function goes but its the windows one that displays a message, anyway the program does not work when i call this function
please help
thanx http://www.opengl.org/discussion_boards/ubb/smile.gif

Deiussum
09-27-2002, 04:25 AM
Are you talking about the API function MessageBox? What do you mean when you say it doesn't work? Have you #included windows.h in your program?

jono_123
09-27-2002, 07:18 PM
i have included windows.h
i get the errors:
error LNK2001: unresolved external symbol __imp__MessageBoxA@16
and fatal error LNK1120: 1 unresolved externals

[This message has been edited by jono_123 (edited 09-28-2002).]

Deiussum
09-28-2002, 05:13 PM
Add user32.lib to the list of libraries in your linker settings.

jono_123
09-29-2002, 07:46 PM
that fixed it
thanx very much http://www.opengl.org/discussion_boards/ubb/smile.gif

Deiussum
09-30-2002, 04:20 AM
No problem. http://www.opengl.org/discussion_boards/ubb/smile.gif