"Brett Baisley" <bb******@nbnet.nb.ca.REMOVE> wrote in message
news:e2**************@TK2MSFTNGP09.phx.gbl...
I am trying to get OpenGL libraries to work in Visual C++.net, but I am
having great difficulty.
I found a web site that explains what to do, but it was written for VC++
6.0 and its not the same for VC++.net. It says to go to "Settings" under
project menu, then click on the "Link" tab and under "Object/library modules:" add
opengl32.lib, glu32.lib and glut32.lib.
I can't find this place. If I rightclick on the solution, and go to
properties, I see something similiar to this, but it doesn't work.
Can someone help? I know it sounds trivial, but I am new to C++.net.
Thanks
Brett
Easiest way is to do this:
#pragma comment (lib, "OpenGL32.lib") at the top of a header or source file.
Another way (VC.NET) is go to window -> options.
You will get an options dialog box, on the left a sort of tree with a bunch
of files.
Click on the projects folder, and from there you can choose VC++
Directories.
In there, you can set the compiler to search directories for your libraries,
etc.
On the top right, there is a "Show Directories for:", select library,
header, and anything else
you need from there.
HTH
Jason