How To Create An Exe Program

Table of contents:

How To Create An Exe Program
How To Create An Exe Program

Video: How To Create An Exe Program

Video: How To Create An Exe Program
Video: How to Convert any Python File to .EXE 2024, May
Anonim

Executable program modules designed to run under Windows operating systems are PE files, usually with the.exe extension. In order to create an exe-format program, it is necessary to compile the source code in any programming language with a compiler capable of generating executable PE modules. For example, you can use the Microsoft Visual C ++ 6.0 IDE and its included compiler to create exe programs.

How to create an exe program
How to create an exe program

Necessary

Microsoft Visual C ++ 6.0

Instructions

Step 1

Start creating a new project in Microsoft Visual C ++. Press Ctrl + N or select the "File" item in the main application menu, and then click on the "New …" item.

Step 2

Select the type of project to create and its location. In the list of the "New" dialog, specify the type of project corresponding to the application being created. Select the "Win32 Console Application" item if you need to create a program that will be output to a text console. Select the "Win32 Application" item to create an application project with a graphical interface implemented on the Win API (in the future, this project can be adapted to use WTL). Select "MFC AppWizard (exe)" to get a GUI application project built on top of the MFC framework. In the "Project name" field, enter a name for the project. In the Location field, select the directory where all generated files will be placed. Click the "OK" button.

Step 3

Create a project. After clicking "OK" in the previous dialog, a wizard will open offering additional options. The number and type of wizard pages depends on the type of project. Follow the instructions in the wizard to specify the required options. However, you can immediately click the "Finish" button in order to get the project with the default values of the options.

Step 4

Add the necessary resources to the project, develop the interface. Use the Resources tab of the project window to include bitmaps, icons, menus, toolbars, dialogs, and more. Use the dialog resource editor to create a large portion of the user interface.

Step 5

Write the programming code. Complement the code generated by the New Project wizard by implementing business logic, logic serving the interface, logic for working with external data, abstraction levels for the interaction of application components, etc.

Step 6

Build the application. Press F7 or choose Build from the Build menu. Wait for the end of the compilation and linking process. Make sure there are no errors.

Step 7

Find the generated exe module. Select "Project" and "Settings …" from the menu, or press Alt + F7. In the "Project Settings" dialog switch to the "Link" tab. Find out the location of the executable from the contents of the "Output file name" field.

Step 8

Test the created program. Change to the directory with the executable module exe. Run it for execution. Make sure the program functions as needed.

Recommended: