Solved

How can I combine multiple 3rd party DLL files and my VB app into a single exe?

Posted on 2012-03-12
3
531 Views
Last Modified: 2012-03-27
I have a VB.Net 2010 application using multiple 3rd party DLLs and would like to compile this into a single binary executable for distribution.  I've searched around and cannot find much of anything on this that is less than 10 years old outside of a few references to ILMerge, and most indications say that will not work with outside DLLs or VB; the DLLs need to be .net assemblies.
Has anything come available that will combine everything into a single exe file for VB apps?  I'm using vb in the vs.net 2010 Pro package...
0
Comment
Question by:Dalexan
  • 2
3 Comments
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 500 total points
ID: 37712211
You are right, ILMerge works only with .NET dlls. So I understand that your dlls are COM dlls, not COM/ActiveX dlls.

COM dlls do not have the same structure as .NET assemblies. And they need to be registered individually in the Windows Registry in order to work, so there is not way to merge them into a single file.

The only thing that you can include in your application is the interop dll that is needed for a .NET application to communicate with an ActiveX component. Since you are in Visual Studio 2010, this is probably already applied to your application, because there is a feature that is on by default and does that for you.

If not, you have some .interop.dll in your resulting compilation. To activate the feature, click on the reference in the References window, and then set Embed Interop Types to True for each of your COM dlls.
0
 

Author Closing Comment

by:Dalexan
ID: 37772330
Not what I wanted to hear, but you did answer my questions and explained what I suspected.  Thank You.  I now know my options and where to go next.
0
 
LVL 40
ID: 37772397
What I would like to hear is that the nigerian who is offering me a fortune is not a fake :-)

Things can be harsh when big changes happen such as moving from COM to .NET.

Wait for the change when users will expect us to design our applications in the Windows 8 metro style interfaces.

That is part of this field of work we have chosen to work in. The continuous changes are in some way what makes it interesting, because you never drop into a routine. But sometimes, those changes, that need to be mixed with a good deal of continuity, are also the part of the job that makes us crazy.

Good luck with you project.
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question