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.
The application uses two local external assemblies, math.dll and parserutils.dll.
paserutils 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 avoid conflicts between name classes.
This sample contains the following class:
This sample is translated from the example located in the Tutorials\resourcesandlocalization\worldcalc subdirectory of the .NET Framework SDK samples directory of Microsoft Visual Studio .NET.