what is a pragma comment?
I have seen pragma comment used to include files to a program i.e
#pragma comment(lib, "opengl32.lib")
#pragma comment(lib, "glu32.lib")
however I don't see why they dont 'just use the #include directive. What is so special about #pragma comment?
Is it just for library files and/or dlls?
ok thanks in advanced
Re: what is a pragma comment?
Quote:
Originally posted by Shadow12345
I have seen pragma comment used to include files to a program i.e
#pragma comment(lib, "opengl32.lib")
#pragma comment(lib, "glu32.lib")
however I don't see why they dont 'just use the #include directive. What is so special about #pragma comment?
Is it just for library files and/or dlls?
ok thanks in advanced
Those lines above link the code to the opengl libraries. Without them it has to be done in the project settings (for VC++ anyway) whihc is just more hassle. Magos seems almost correct, but I am sure its not limited to stuff that isn't written in C - could be wrong though.