Creating a new project

An Eiffel project has an important class, the so-called root class. This class needs at least one creation procedure. Then each project needs a name to be used for the compiled executable program.

Fill in the appropriate information. In our case we will get the executable program my_test.exe (or a DLL, this can be selected in the project options area). The new project will be stored in a new subdirectory new_dir  and will have the root class MAIN and the creation procedure make (the items in red were filled into the form - you can replace them with your own text).

If the field New Subdirectory is empty, the current directory (the one shown in the directory area) will be used to store the new project.


As soon as the Create button is pressed, the new subdirectory new_dir will be created and an .esd file my_test.esd is created in this subdirectory.

Now we have to specify which clusters from the repository we need for our project. Visual Eiffel has automatically included our current cluster - MY_TEST and the KERNEL cluster containing the basic functionality of the Eiffel runtime.

If you know which additional clusters you need, you can "move" them to the actual project. But probably you don't - so click Cancel. You can return to this option later.

Visual Eiffel has created a class main.e containing the class MAIN with an empty creation procedure make. You can use this class in order to write your first own Eiffel program.

Visual Eiffel uses special templates to create this new class. You can modify these templates by yourself!

Just type the following small piece of code:

print ("Hello")

and press the build "Build" buttonbutton.


Copyright © Object Tools -- info@object-tools.com
Last updated: 2005/02/02 11:51:37