Solved

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

Posted on 2012-03-12
3
535 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

734 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