[C++] Including DLLS

Started by
1 comment, last by Antheus 11 years, 12 months ago
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?
Advertisement
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.
[size=2][ 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 ]
See the GLEW documentation, it supports static include.

This topic is closed to new replies.

Advertisement