Program to Encapsulate a VB Projects ocx, exe and dll's into Single .exe

Posted on 2005-05-05
Last Modified: 2009-12-16
I am looking for a program that can be used to encapsulate all VB6 projects ocx, exe, dll and all other required files into single .exe file that can be run without the neccesisty for an installation package. The program I am looking for is something similar to Bit-Arts Fusion, as this is exactly what I need, but Bit-Arts Fusion requires an internet conection to activate the software and I do not have an internet connection on the machine where I want to install it.

If anyone can tell me of a good program that provides this same functionality then please let me know.


Question by:Lianne072600
    LVL 3

    Expert Comment

    I don't think you will be able to do this through a third-party program due to the exe using Windows to access all the dll's and etc.  The best option would be to incorporate all the dll class files, ocx files, and other files into the vb project.  So when you recompile the project it will build them into the exe file.  However this will make the exe much larger, and those dll and ocx files will not be accessable by any other programs (since they are actually embedded into the exe.

    To do this just go to Project and Add File, then you will need to add all the dll classes, ocx, and other files into the project.  Depending on how it was first created you may have to adjust some of the code for calling and creating the objects.  And you will need to un-reference those dll and ocx files from Project -> Components.

    Let me know if you need some more info!

    LVL 1

    Author Comment


    Thanks for your response.

    >>go to Project and Add File
    I just get the message ".... .ocx could not be loaded", I have tried these with a few different files and it does not work for any of them.

    >>you may have to adjust some of the code
    It is a massive project and to rewrite the code with my deadline looming is not an option.

    >>those dll and ocx files will not be accessable by any other programs (since they are actually embedded into the exe
    That would not be a problem as the ones I want to incorporate are specifically for this project.

    It looks like my only option is going to be to connect my laptop up to the internet (which I really didn't want to do)  so that I can purchase and activate the Fusion software as this does exactly what I want.

    LVL 3

    Accepted Solution

    Sorry to hear that.

    On loading the code for the ocx and dll, you would need the source code which should be .cls, .frm, .ctl, and .bas files. Or go to File -> Add project if you need more than just one or two classes. Sorry I wasn't clear on that before.

    Anyways if your on a short timeline redoing the project would probably take too long, it looks like Bit Arts Fusion will do it.  Although I'm curious as to how much extra overhead it puts on the project?

    Best wishes

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Cisco switch with no IOS installed 2 46
    hasOne  challenge 59 64
    find a node in VST 2 37
    strCount chalenge 3 35
    Purpose To explain how to place a textual stamp on a PDF document.  This is commonly referred to as an annotation, or possibly a watermark, but a watermark is generally different in that it is somewhat translucent.  Watermark’s may be text or graph…
    A short article about a problem I had getting the GPS LocationListener working.
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
    In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

    728 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

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now