◄Contents► ◄Index► ◄Back► ────────────────────────────────────────────────────────────────────────────── Creating EXE Files ■ To create an executable file from your project: 1. From the Run menu, choose Make EXE File The Make Exe File dialog box appears. 2. Type a file name in the EXE File Name text box If there are no syntax errors or other compile-time errors in your code, Visual Basic displays a default .EXE file name in the File Name text box. ┌─────────────────────────┐ EXE File Name: │ │ └─────────────────────────┘ 3. Select the type of .EXE file ┌────────────────────────────────────────┐ │ ( ) Stand-Alone EXE file /O │ │ (•) EXE Requiring Run-Time Module │ └────────────────────────────────────────┘ • Use Stand-Alone EXE file option to create .EXE files that run without the Visual Basic run-time module (same as using /O with the Visual Basic Compiler). Use this option if you plan to distribute your project to other developers or users. • Use EXE Requiring Run-Time Module option to create .EXE files that run with the Visual Basic run-time module. 4. Select the Run-Time Error Checking option If you want to generate debugging code for run-time error checking (same as using /D with the Visual Basic Compiler), tab to the check box and press the Spacebar to select it. ┌────────────────────────────────────────┐ │ [ ] Run-Time Error Checking /D │ └────────────────────────────────────────┘ 5. Press Enter or choose Make EXE ╔═════════════════╗ ║ Make EXE ║ Creates the executable file and stays in the ╚═════════════════╝ programming environment ┌─────────────────┐ │Make EXE and Exit│ Creates the executable file and exits the └─────────────────┘ programming environment ┌─────────────────┐ │ Cancel │ Cancels the operation └─────────────────┘ ┌─────────────────┐ │ Help │ Gets help on how to create an EXE file └─────────────────┘ ■ All Make EXE File options are written to VBDOS.INI when you exit Visual Basic and reloaded when Visual Basic is restarted. ■ Use the Basic Compiler (BC.EXE) and Linker (LINK.EXE) to create executable files from the MS-DOS command line. See: ◄BC Command-Line Options► ◄LINK Command-Line Options►