Sign in to follow this  
ArgusMaker

[C++] Including DLLS

Recommended Posts

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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
See the GLEW documentation, it supports [url="http://glew.sourceforge.net/install.html"]static include[/url].

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this