1. How do I distribute my EXE files (programs)?
Ubercode programs consist of EXE files, DLL files and extra files that contain windows, forms,
dialog boxes and so on. The Ubercode Developer Environment makes it easy to copy programs onto
removeable disks or onto other computers. First use the Run - Quickbuild EXE File command in
the Ubercode Developer Environment to bring all the files up to date. Then use the Program -
Copy EXE File command. This shows a list of all the files in the program that need to be
copied. Files have a green tick next to their name if the file exists:
Now choose how you want to copy the files. Copying to floppy disks is useful for copying
programs to earlier computers. Copying to a folder is useful for running programs across a network.
Copying to a zip file is useful for emailing programs, or for programs with files too large to fit
on floppy disks. Click the button to copy the EXE files. The command includes all the files
required to run the program on another computer. The files run on any Windows PC, from Windows XP
all the way back to Windows 95.
When running the files on another computer, create a new folder and copy the files there. You
don't need to modify the registry or store any files in the Windows system directory to run
Ubercode programs. If you want a more elaborate setup system that creates directories, shows
banners, adds program groups, shortcuts etc, there are tools such as InstallShield that do
Please note the Standard Pack and Professional Pack are required when creating programs to copy
to other computers. To check the package details, look on the CD label, or the product packaging,
or use the Help - About command in the Developer Environment. Although the Trial Pack is
able to copy the EXE files in the same way as other packages, the resulting disks / folders / zip
files are not licenced for running on other computers.
2. How do I know what files to include in my programs?
Use the View - Output Files command in the Ubercode Developer Environment to see a list
of files needed to run the current program. For example if your main class is "myapp.cls" the
following files are typically needed:
- Myapp.exe - Main program which includes inherited classes.
- Myapp.exe.manifest - Main program manifest file.
- Myapp.rcx - Dialogs and menus used by program.
- *.dll - Run time library DLLs.
- Myapp.hlp - Only if you have written a help file.
- Data files - Any data files used by your program.
If you are using the Ubercode Standard Pack or Ubercode Professional Pack, you can distribute a
program using the Program - Copy EXE File command. This automatically copies the files,
ready for installation on the new computer. Ubercode does not require any registry entries, and no
system DLLs need to be replaced. This avoids problems with "DLL Hell" or "Framework Hell" which are
not nice places.
Please note the Trial Pack is licenced for testing and evaluation of Ubercode only. It is not
licenced for making EXE files for distribution to other computers. The Standard Pack or
Professional Pack are required for this.
3. How do I put a link to an EXE file on my desktop?
The basic process is you create a short-cut to your program, then copy the short cut file to the
Windows desktop. Use the following steps:
- Right-click the Windows Start button.
- Choose the Explore command from the menu.
- In the Windows Explorer left-hand window, navigate through the folders until you find the
folder containing your newly-created EXE file. If you're not sure where the folder is, the
Developer Environment's code editor window shows the full path of the program you have just
compiled. You need to locate this folder in the left-hand window, then your new EXE file will be
visible in the right-hand window.
- In the right-hand window, right-click on the EXE file, then choose the Create Shortcut
- Drag the short-cut to the Windows desktop.
- To rename the short-cut rearrange your windows so you can see the icon on the desktop. Click it
once with the mouse to highlight it, then press F2 to edit the name. Press the Enter key when you
have finished editing the name.
4. How do I use an installer to copy my EXE files to another
You can do this using the Ubercode Professional Pack. Start the
Developer Environment, open your program and recompile it. Then use the Tools - Create Program
Installer menu command which brings up a dialog used for configuring the built-in installer. The
installer allows you to choose the text shown during the installation process, the destination of
the installation, and whether an icon is placed on the desktop of the computer being installed to.
When this information has been set up, click the Create button to go ahead and create the
installer. After the installer is created, it exists as a single packaged EXE file with all the
files and commands needed for installing on the destination computer. You can copy this EXE file to
a CD-ROM, email it to your customers or put it on your website for downloading. Anyone with the
packaged EXE file can install and run your program simply by running the EXE file.
5. Where is the run time library installed?
Whenever Ubercode programs run, the DLLs are loaded with the Windows LoadLibrary function, which
- the current directory.
- the windows directory (normally C:\windows)
- the windows system directory (normally C:\windows\system)
- the application's own directory (where the EXE file is)
The easiest way is to put the DLLs in the same directory as the EXE. This is only wasteful if
you have several Ubercode applications installed on a machine, as it duplicates the DLLs. In this
case the best way is to put them in the windows directory.
Ubercode DLLs are versioned using their file names, which guarantees programs always use the
correct DLLs. For example a program compiled with Ubercode version X.Y always uses the DLL
corresponding to version X.Y, and no other DLL. Therefore multiple Ubercode programs of different
versions can run on the same computer using the correct DLLs without conflict.