Microsoft Visual Basic 6.0 Portable No Install Needed
The objective here is to create a completely portable, dependency free, no registration needed, no installation needed, VB6 executable. Also, there's the added task that it should 'clean up after itself'. Also, there's the criteria that we may use various ActiveX (OCX) controls. For purposes of this example, I've assumed that we're using the mscomctl.ocx (and only that one), but the concept can be easily extended to other ActiveX controls (and even DLL libraries). This idea is perfect for a small application with no datafiles, possibly like a calculator. From the VB6 IDE, it actually takes two projects.
I'll call them Project1 and Project2. Project1 is actually a 'loader', 'execute', and 'clean-up' program. Project2 is the actual program that the user will see. Alright, here are the steps to do it. Let's start with Project2 (your actual program): • Start a new project.
• Rename the project name to Project2 under Project Properties. • Rename the default form to Form2. (There's no Form1 in this project.) • Add a component reference to mscomctl.ocx (Microsoft Windows COmmon Controls 6.0 (SP6)). • Throw several controls from mscomctl.ocx onto the default form (see picture below). • Save the project, saving it as Project2 and Form2. • Compile the project as Project2.exe.
Need to download Visual Basic 6.0. For where I can download it. From what I understand Microsoft has. Portable version of Visual Basic 6.0.
Mango Mania at Cool Math Games: Help the little green monster eat his delicious mangoes! Climb walls, jump over spikes, and make it to the exit. Tower minia on hifigament. View the profiles of people named Tow Minia. Join Facebook to connect with Tow Minia and others you may know. Facebook gives people the power to share. Kongregate free online game Word Mania - Word Mania is a new word search game with original gameplay, 3 game modes, over 170K possible. Play Word Mania.
It really doesn't matter what code you put into this project. It's just a demonstration. But we will need this Project2.exe to continue. Here's a picture of my Form2 (with some mscomctl.ocx controls on it): Now for the Project1 (loader) project.
Here are the steps for it: • Start a new project. • (No need for any additional references. In fact, it's important to not have any.) • Place the Form1 code (see below) into Form1.
• I also placed a label on this form, just so I'd know what it was (see picture below). • Using the resource editor, add mscomctl.ocx, Project2.exe, and Project2.exe.manifest files. • To actually use the resource editor, you must load it within the VB6 IDE. It is found on the menu under Add-Ins / Add-In Manager. • I use the mscomctl.ocx version 6.01.9545. The manifest is set up for this version. If you use a different version, you can.
So long as you don't register it on your computer (and nothing I suggest does this), it won't interfere with any other programs. Just save it in the same folder with your source code for this project. • You'll also need the XML code that goes into the Project2.exe.manifest file for this demo. Note that this file is always named the same as your executable, with the addition of the.manifest extension. This is an ASCII/ANSI file that can be created with Notepad (or any other ASCII/ANSI editor). It was a bit long to place in a code section of this post, so. • Also, I chose to make a resource category named 'Dependencies'.