Compile project & components to make single exe file

Posted on 2002-06-19
Last Modified: 2010-05-02
Hopefully someone will be able to help me with the following.

I have created a project which contains a number of ActiveX controls etc. When I have finished my project I want to be able to compile the project and all these files into a single file so that the user cannot access them by any means, is this possible?

Thanx in advance

Question by:MandyP1
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
  • 2
  • 2
  • +2

Expert Comment

ID: 7092888
Yes, in your project use Add usercontrol and add the myControl.ctl file to the project. Your user control now is compiled into the executable
LVL 70

Accepted Solution

Éric Moreau earned 40 total points
ID: 7092906
You need a static linker to do this. see

Expert Comment

ID: 7092922
The short answer I believe is "NO". Isn't this the point of ActiveX controls that you can share them amongst other programs?

(But I am intrigued as to why you should want to do this - If he can't access them "by any means", how do you intend to make the program run?)
Industry Leaders: 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!


Expert Comment

ID: 7092931
Having just read the comment from corvanderlinden.
- I've just learnt something now as well...sorry for the poor comment.

Expert Comment

ID: 7092983
You do not need another linker. I have done this many times (VB6)
LVL 70

Expert Comment

by:Éric Moreau
ID: 7093019
corvanderlinden comment is good if and only if you have the source code of all your components. Otherwise, my comment is the only way to go.

Expert Comment

ID: 7097567

I reduced the points to 40 and refunded the rest. You can accept now emoreau's comment as an answer and post a separate 31p question for corvanderlinden with a title like "Points for corvanderlinden" and a body :"For your help with <URL>"

** Mindphaser - Community Support Moderator **

Author Comment

ID: 7098897
Thanks for your help on this, I have split the points as follows: -

40 points to emoreau, as you have pointed me in the direction of a product that will work even with my older control that I no longer have the code for. Thanks.

31 points to corvanderlinden, as his advice proves invaluable for my newer controls. These can be collected by going to Thanks.


Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Determine Range to Select 5 63
Access query that references subform 5 49
How to Add / Edit Windows Menu 4 80
VB6 common control 6 sp6 object library not registerd 3 62
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

739 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