469,300 Members | 2,350 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,300 developers. It's quick & easy.

How can I embed a .dll into my final .exe

Hello,

I developed an windows application and I have a .dll that currently sits outside the dll. If possible, I would rather embed somehow the .dll so I could distrubute the application without having to distrubute the external .dll.

is this possible, and if so, how do I go about doing this?

I'm using VS.NET (C#) 2005

Thanks for any help you can offer,

Thanks,
Cedric
Feb 26 '07 #1
13 67397
vijaydiwakar
579 512MB
Hello,

I developed an windows application and I have a .dll that currently sits outside the dll. If possible, I would rather embed somehow the .dll so I could distrubute the application without having to distrubute the external .dll.

is this possible, and if so, how do I go about doing this?

I'm using VS.NET (C#) 2005

Thanks for any help you can offer,

Thanks,
Cedric
have u tried to add reference
Feb 26 '07 #2
yes,

Thats not the issue. The issue is the final output is that I have the .exe and the external .dll. I want to be able to embed the .dll into the .exe so when I distrubute the app, I only have the 1 .exe and not 2 files (.exe and the .dll)
Feb 26 '07 #3
vijaydiwakar
579 512MB
yes,

Thats not the issue. The issue is the final output is that I have the .exe and the external .dll. I want to be able to embed the .dll into the .exe so when I distrubute the app, I only have the 1 .exe and not 2 files (.exe and the .dll)
in such case u've to write the code in any classmodule of that application
Feb 26 '07 #4
Dear Mr
Just Make Run to your project and go to dirctoy or your project \bin \you have file .exe just copy then past anywhere you need

Dest Reagrd
D.A.L
Feb 26 '07 #5
radcaesar
759 Expert 512MB
Just integrate the .dll code inside ur project as an module.

But its a bad practice and not recommended. It will violate OOP system definitions.

:)
Feb 26 '07 #6
The dll is a royalty free lib. I purchased, and though I can freely distrubute the library. I don't want everyone who purchase this app to have access to this lib. So I can't just place the code inside a class in my app, cause I don't have access to the source.

There's no tools to embed dll's inside of .exe's???

Thanks for the replies so far, just trying to figure out how I'm going to distrubute this application.

Cedric
Feb 26 '07 #7
dorinbogdan
839 Expert 512MB
This link may be helpful.
Feb 26 '07 #8
Plater
7,872 Expert 4TB
You might be able to do something sneaky with the resources. I think you need to create an unmanaged resource or something and bind the library inside it to be linked. I've never attempted this, but I seem to recall people doing it back in days of yor.
Jun 30 '08 #10
sanii
1
Try the free utility from Microsoft called 'ILMerge' available at Download details: ILMerge. It enables merging all assemblies that an app uses (.dlls, .exes) into one .exe for easier deployment purposes via the regular Build process in Visual Studio.
Jan 8 '09 #11
NitinSawant
270 100+
use ILMerge,


you can merge dll and exe's into one final exe for easy redistribution.
Jan 10 '09 #12
I found one free application and more more powerful "Enigma Virtual Box" from http://enigmaprotector.com . Also "Register ActiveX/COM Components without Administrator Privileges" via this application. Moreover this is freeware thus I love it. Your all fulfillment may be complete with this freeware.
Aug 4 '12 #13
The only way is to use special tools. I don't like packers, but there is SDK for that which can be used from .net code: it's boxedapp sdk. It's very handy to just create pseudofile and then use it.
Jul 25 '13 #14

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Wolfgang Schwanke | last post: by
3 posts views Thread by Tony Sutton | last post: by
11 posts views Thread by Anna | last post: by
2 posts views Thread by François de Dardel | last post: by
3 posts views Thread by Nikolay Petrov | last post: by
1 post views Thread by Andrew Poulos | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.