-
December 3rd, 2012, 12:20 AM
#1
OpenGL with C++ Application GLUT.DLL Problem
I try to Build one Application by Using OpenGL...
But every time I try to check the Application I got this message
GLUT.DLL is missed..
I checked the folder c/Windows/System32
I found the file is existing
I am using Win7 64 Bit..
Any help About this problem to get solution..
My Best Regards..
-
December 3rd, 2012, 03:50 AM
#2
Re: OpenGL with C++ Application GLUT.DLL Problem
Victor Nijegorodov
-
December 4th, 2012, 01:54 AM
#3
Re: OpenGL with C++ Application GLUT.DLL Problem
My Deep Respect for you Victor , every time you do your best to answer my questions...
and Kindly I have one idea I want to discuss , Some saying copy the file *.DLL and keep it with working folder of project .. is is it correct , kindly explain the concept .. and I would like if Igor share us his effective viewpoints also..
My Best Regards
-
December 5th, 2012, 03:37 PM
#4
Re: OpenGL with C++ Application GLUT.DLL Problem
Well, the concept is extremely simple: you need to ensure your dll loads fine.
This is guaranteed by placing it to one of the folders where system loader typically looks up in. As you can see, the lookup typically starts in "The directory from which the application loaded", which means the folder where your EXE resides. This is what you should've been advised first with. The current directory (by what "working folder of project" was meant, I suspect) is a less reliable option as you can see. A good option is system32 directory, but in your case, as far as I understand, the 32-bit DLL was placed to a 64-bit folder (and what actually the article proposed by Victor is really about).
Best regards,
Igor
-
December 10th, 2012, 01:37 AM
#5
Re: OpenGL with C++ Application GLUT.DLL Problem
Many Thanks Igor for your clarifications..
and one more question , Can I combine DLL file with my Project .. because if I run the *.exe file the *.DLL file will be included with the *.exe file..
My Best Regards
-
December 10th, 2012, 08:45 AM
#6
Re: OpenGL with C++ Application GLUT.DLL Problem
Originally Posted by mecheil.edwar
Can I combine DLL file with my Project .. because if I run the *.exe file the *.DLL file will be included with the *.exe file..
I'm not sure what this is about. You mean development time? Or this is about deploying your Project to target machine?
If development time is meant, than you just place the dll to one of the folders the article mentions. If deployment time is meant, Victor's note about setup appears absolutely correct. You cannot natively combine DLL and EXE, and should not do that any other (non-native) way as this just complicates the whole situation while providing a really miniscule benefit.
Best regards,
Igor
-
December 10th, 2012, 04:36 AM
#7
Re: OpenGL with C++ Application GLUT.DLL Problem
It is what setup programs was designed for. Create a setup which will include your exe, dll, other files needed for your program.
Victor Nijegorodov
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|