- 18.11 (released) ...
To compile the example:
- Launch EiffelStudio.
- Select Use existing Ace (control file) and click OK
- Browse to $ISE_EIFFEL\examples\dotnet\winforms\applications\world_calc
- Choose the Ace file for the version of the .net framework you are running
- Choose the directory where the project will be compiled, by default the same directory containing the Ace file.
- Click OK.
After launching the application, you will see a window displayed with a similar appearance to the one above. This is a really simple calculator that can take only two operands. So you should enter the first operand, then enter an operator, then the second operand. Click the "Calculate" button to generate the result.
Under the Hood
The application uses two local external assemblies, math.dll and parserutils.dll.
parserutils parses the command line entered, and checks if it is of the form operand1 operator operand2. math.dll calculates the actual result of the command line.
For the parserutils.dll, we have been obliged to introduce the prefix "PARSER_" to class names in this assembly in order to avoid conflicts between class names from this and other sources.
This sample uses the following classes:
This sample is translated from the example located in the Tutorials\resources and localization\worldcalc subdirectory of the.NET Framework SDK samples directory of Microsoft Visual Studio.NET.