Where do I leave freeglut.dll without admin rights?

531 Views Asked by At

I have installed freeglut to develop with openGL in Visual Studio 2008. But when playing the exe after building, freeglut.dll can't be found. This is quite logical, because I haven't put it into C:\Windows\System32. I can't, because I'm no admin.

What I would like to do now is copy the dll to the ouput folder. I've already put the freeglut.dll into my project folder, but didn't add it to my project. In what way should I set this one up to get freeglut.dll in my output folder?

Thanks in advance.

1

There are 1 best solutions below

3
On BEST ANSWER

Have a post build step that copies that dll from your project folder to the output one.

Under your project properties, Post-Build event, put a command line that copies the file from its source location to ${OutDir}