Sign in to follow this  
Grantyt3

DLLs and EXEs

Recommended Posts

Yes. You can include the dll as a resource the exe - but to use the dll you have to include code to extract that resource and then dynamically load the dll. This is a lot of work and isn't generally warranted.

If you have the code for the dll, simply add it to your project.

What exactly is it that you're thinking about doing?


Share this post


Link to post
Share on other sites
Quote:
Original post by Grantyt3
If my program is dependent upon a DLL, isn't there a way I can merge the DLL into my EXE when compiling/linking?


Can't you just use static libs?

Share this post


Link to post
Share on other sites
No. The first D in DLL stands for "Dynamic"; Implying that you can't do things statically.

There's 2 says fo compiling some external code into your program; by linking it statically (with a .lib), and having everything in the EXE, or by having a DLL, and having some of the code in that.

As LessBread said, it is possible to have the DLL loaded into the EXE, but it makes an absolute mess, is definitely not recommeded, and is a nightmare to implement.

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