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
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?
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).]
Add user32.lib to the list of libraries in your linker settings.
that fixed it
thanx very much