Jump to content

  • Log In with Google      Sign In   
  • Create Account

[C++] Including DLLS


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 ArgusMaker   Members   -  Reputation: 102

Like
0Likes
Like

Posted 21 April 2012 - 09:16 AM

Hi there!
I'm programming in C++ - Win32 exe application environment.
My exe makes use of OpenGL and glew, so it needs glew32.dll to be in System folder or in the same directory of my exe.
What if i want to publish my exe without that additional DLL?
Is there a way to include the DLL inside the EXE?

Sponsor:

#2 Cornstalks   Crossbones+   -  Reputation: 6994

Like
0Likes
Like

Posted 21 April 2012 - 09:25 AM

Well, technically yes, you could embed the DLL inside the EXE, but the EXE wouldn't be able to use it directly, and it would have to copy the embedded DLL and save it out to a file so that it could make use of it. I'm not sure why you'd want to do this though... I'd just include the DLL with the EXE.
[ I was ninja'd 71 times before I stopped counting a long time ago ] [ f.k.a. MikeTacular ] [ My Blog ] [ SWFer: Gaplessly looped MP3s in your Flash games ]

#3 Antheus   Members   -  Reputation: 2397

Like
0Likes
Like

Posted 21 April 2012 - 10:19 AM

See the GLEW documentation, it supports static include.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS