CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2012
    Location
    UAE
    Posts
    62

    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..

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    Re: OpenGL with C++ Application GLUT.DLL Problem

    Victor Nijegorodov

  3. #3
    Join Date
    Jun 2012
    Location
    UAE
    Posts
    62

    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

  4. #4
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,620

    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

  5. #5
    Join Date
    Jun 2012
    Location
    UAE
    Posts
    62

    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

  6. #6
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,396

    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

  7. #7
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,620

    Re: OpenGL with C++ Application GLUT.DLL Problem

    Quote Originally Posted by mecheil.edwar View Post
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured