Click here to Skip to main content
15,891,762 members
Articles / Desktop Programming / ATL

Visual Calc v3.0 - A new dimension for the desktop calculator

Rate me:
Please Sign up or sign in to vote.
3.62/5 (113 votes)
28 Apr 2006CPOL22 min read 359.5K   6.8K   104  
How to start programming a parser.
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by VisualCalc.rc
//
#define IDM_ABOUTBOX                    0x0010
#define IDM_HELPBOX                     0x0020
#define IDD_VISUALCALC_DIALOG           100
#define IDD_ABOUTBOX                    101
#define IDD_OPERATORS_PAGE              102
#define IDD_FUNCTIONS_PAGE              103
#define IDD_ERROR_CODES_PAGE            104
#define IDB_ABOUTFRAME                  105
#define IDR_MAINFRAME                   106
#define IDI_ABOUT                       107
#define IDI_CODEPROJECT                 108
#define IDI_ERRORCODES                  109
#define IDI_FUNCTIONS                   110
#define IDI_HELP                        111
#define IDI_OPERATORS                   112
#define IDI_SWITCH                      113
#define IDI_VISUALSTUDIO6               114
#define IDI_WINXP                       115
#define IDI_DOXYGEN                     116
#define IDS_HELPBOX                     128
#define IDS_ABOUTBOX                    129
#define IDS_VISUALCALC                  130
#define IDS_ANSWERS_STC                 131
#define IDS_VARIABLES_STC               132
#define IDS_FUNCTIONS_STC               133
#define IDS_HOWTOQUIT_STC               134
#define IDS_ERASE_BTN                   135
#define IDS_CALCULATE_BTN               136
#define IDS_ABOUT_BTN                   137
#define IDS_HELP_BTN                    138
#define IDS_ABOUT_GUIVERSION            144
#define IDS_ABOUT_PARSERVERSION         145
#define IDS_ABOUT_COPYRIGHT             146
#define IDS_ABOUT_CODEPROJECT           147
#define IDS_ABOUT_DOXYGEN               148
#define IDS_ABOUT_CLOSECLICK            149
#define IDS_HELP                        160
#define IDS_HELP_FUNCTIONS              161
#define IDS_HELP_OPERATORS              162
#define IDS_HELP_ERROR_CODES            163
#define IDS_HELP_FCTS_AVAILABLE         176
#define IDS_HELP_FCTS_NAMES             177
#define IDS_HELP_FCTS_USES              178
#define IDS_HELP_FCTS_DEF_ABS           179
#define IDS_HELP_FCTS_DEF_ACOS          180
#define IDS_HELP_FCTS_DEF_ANS           181
#define IDS_HELP_FCTS_DEF_ASIN          182
#define IDS_HELP_FCTS_DEF_ATAN          183
#define IDS_HELP_FCTS_DEF_COS           184
#define IDS_HELP_FCTS_DEF_COSH          185
#define IDS_HELP_FCTS_DEF_DEG           186
#define IDS_HELP_FCTS_DEF_EXP           187
#define IDS_HELP_FCTS_DEF_LN            188
#define IDS_HELP_FCTS_DEF_LOG           189
#define IDS_HELP_FCTS_DEF_LOGN          190
#define IDS_HELP_FCTS_DEF_NAP           191
#define IDS_HELP_FCTS_DEF_NCP           192
#define IDS_HELP_FCTS_DEF_PRODUCT       193
#define IDS_HELP_FCTS_DEF_RAD           194
#define IDS_HELP_FCTS_DEF_SIN           195
#define IDS_HELP_FCTS_DEF_SINH          196
#define IDS_HELP_FCTS_DEF_SQRT          197
#define IDS_HELP_FCTS_DEF_SQRTN         198
#define IDS_HELP_FCTS_DEF_SUM           199
#define IDS_HELP_FCTS_DEF_TAN           200
#define IDS_HELP_FCTS_DEF_TANH          201
#define IDS_HELP_FCTS_USE_ABS           208
#define IDS_HELP_FCTS_USE_ACOS          209
#define IDS_HELP_FCTS_USE_ANS           210
#define IDS_HELP_FCTS_USE_ASIN          211
#define IDS_HELP_FCTS_USE_ATAN          212
#define IDS_HELP_FCTS_USE_COS           213
#define IDS_HELP_FCTS_USE_COSH          214
#define IDS_HELP_FCTS_USE_DEG           215
#define IDS_HELP_FCTS_USE_EXP           216
#define IDS_HELP_FCTS_USE_LN            217
#define IDS_HELP_FCTS_USE_LOG           218
#define IDS_HELP_FCTS_USE_LOGN          219
#define IDS_HELP_FCTS_USE_NAP           220
#define IDS_HELP_FCTS_USE_NCP           221
#define IDS_HELP_FCTS_USE_PRODUCT       222
#define IDS_HELP_FCTS_USE_RAD           223
#define IDS_HELP_FCTS_USE_SIN           224
#define IDS_HELP_FCTS_USE_SINH          225
#define IDS_HELP_FCTS_USE_SQRT          226
#define IDS_HELP_FCTS_USE_SQRTN         227
#define IDS_HELP_FCTS_USE_SUM           228
#define IDS_HELP_FCTS_USE_TAN           229
#define IDS_HELP_FCTS_USE_TANH          230
#define IDS_HELP_OPERS_AVAILABLE        240
#define IDS_HELP_OPERS_USES             241
#define IDS_HELP_OPERS_DEF_ADDITION     242
#define IDS_HELP_OPERS_DEF_SUBTRACTION  243
#define IDS_HELP_OPERS_DEF_MULTIPLICATION 244
#define IDS_HELP_OPERS_DEF_DIVISION     245
#define IDS_HELP_OPERS_DEF_POWER        246
#define IDS_HELP_OPERS_DEF_MODULUS      247
#define IDS_HELP_OPERS_DEF_PARENTHESIS  248
#define IDS_HELP_OPERS_DEF_UNARYPLUS    249
#define IDS_HELP_OPERS_DEF_UNARYMINUS   250
#define IDS_HELP_OPERS_DEF_ASSIGNEMENT  251
#define IDS_HELP_OPERS_DEF_FACTORIAL    252
#define IDS_HELP_OPERS_DEF_DEGTORAD     253
#define IDS_HELP_ERRORS_CODES           256
#define IDS_HELP_ERRORS_DESCRIPTIONS    257
#define IDS_HELP_ERRORS_SYNTAX          258
#define IDS_HELP_ERRORS_MATHEMATIC      259
#define IDS_HELP_ERRORS_FUNCTIONS       260
#define IDS_HELP_ERRORS_PARAMETERS      261
#define IDS_HELP_ERRORS_VARIABLES       262
#define IDS_HELP_ERRORS_DOMAIN          263
#define IDS_HELP_ERRORS_PARSER          264
#define IDS_HELP_ERRORS_1001            265
#define IDS_HELP_ERRORS_1002            266
#define IDS_HELP_ERRORS_1003            267
#define IDS_HELP_ERRORS_1004            268
#define IDS_HELP_ERRORS_2001            269
#define IDS_HELP_ERRORS_2002            270
#define IDS_HELP_ERRORS_2003            271
#define IDS_HELP_ERRORS_2004            272
#define IDS_HELP_ERRORS_2005            273
#define IDS_HELP_ERRORS_2006            274
#define IDS_HELP_ERRORS_2007            275
#define IDS_HELP_ERRORS_2008            276
#define IDS_HELP_ERRORS_3001            277
#define IDS_HELP_ERRORS_3002            278
#define IDS_HELP_ERRORS_3003            279
#define IDS_HELP_ERRORS_4001            280
#define IDS_HELP_ERRORS_4002            281
#define IDS_HELP_ERRORS_5001            282
#define IDS_HELP_ERRORS_5002            283
#define IDS_HELP_ERRORS_5003            284
#define IDS_HELP_ERRORS_6001            285
#define IDS_HELP_ERRORS_6002            286
#define IDS_HELP_ERRORS_6003            287
#define IDS_HELP_ERRORS_6004            288
#define IDS_HELP_ERRORS_6005            289
#define IDS_HELP_ERRORS_9001            290
#define IDS_HELP_ERRORS_9009            291
#define IDC_INPUT_EDIT                  1000
#define IDC_OUTPUT_EDIT                 1001
#define IDC_ANSLIST_LBOX                1002
#define IDC_FORMULAS_LBOX               1003
#define IDC_VARNAMES_LBOX               1004
#define IDC_FUNCLIST_LBOX               1005
#define IDC_CALC_BTN                    1006
#define IDC_ABOUT_BTN                   1007
#define IDC_HELP_BTN                    1008
#define IDC_ANSLISTSTATE_CHK            1009
#define IDC_RESETANS_BTN                1010
#define IDC_RESETVARS_BTN               1011
#define IDC_RESETFUNCS_BTN              1012
#define IDC_VARVALS_LBOX                1013
#define IDC_GUIVERSION_STATIC           1013
#define IDC_PARSERVERSION_STATIC        1014
#define IDC_VARLISTSTATE_CHK            1014
#define IDC_HOWTOQUIT_STATIC            1015
#define IDC_ANSWERS_STATIC              1016
#define IDC_VARIABLES_STATIC            1017
#define IDC_FUNCTIONS_STATIC            1018
#define IDC_VISUALCALC_STATIC           1019
#define IDC_COPYRIGHT_STATIC            1020
#define IDC_CODEPROJECT_STATIC          1021
#define IDC_DOXYGEN_STATIC              1022
#define IDC_CLOSECLICK_STATIC           1023
#define IDC_FCTS_ABS_DEF_STATIC         1024
#define IDC_FCTS_ACOS_DEF_STATIC        1025
#define IDC_FCTS_ANS_DEF_STATIC         1026
#define IDC_FCTS_ASIN_DEF_STATIC        1027
#define IDC_FCTS_ATAN_DEF_STATIC        1028
#define IDC_FCTS_COS_DEF_STATIC         1029
#define IDC_FCTS_COSH_DEF_STATIC        1030
#define IDC_FCTS_DEG_DEF_STATIC         1031
#define IDC_FCTS_EXP_DEF_STATIC         1032
#define IDC_FCTS_LN_DEF_STATIC          1033
#define IDC_FCTS_LOG_DEF_STATIC         1034
#define IDC_FCTS_LOGN_DEF_STATIC        1035
#define IDC_FCTS_NAP_DEF_STATIC         1036
#define IDC_FCTS_NCP_DEF_STATIC         1037
#define IDC_FCTS_PRODUCT_DEF_STATIC     1038
#define IDC_FCTS_RAD_DEF_STATIC         1039
#define IDC_FCTS_SIN_DEF_STATIC         1040
#define IDC_FCTS_SINH_DEF_STATIC        1041
#define IDC_FCTS_SQRT_DEF_STATIC        1042
#define IDC_FCTS_SQRTN_DEF_STATIC       1043
#define IDC_FCTS_SUM_DEF_STATIC         1044
#define IDC_FCTS_TAN_DEF_STATIC         1045
#define IDC_FCTS_TANH_DEF_STATIC        1046
#define IDC_FCTS_AVAILABLE_STATIC       1047
#define IDC_FCTS_NAMES_STATIC           1048
#define IDC_FCTS_USES_STATIC            1049
#define IDC_FCTS_ABS_USE_STATIC         1050
#define IDC_FCTS_ACOS_USE_STATIC        1051
#define IDC_FCTS_ANS_USE_STATIC         1052
#define IDC_FCTS_ASIN_USE_STATIC        1053
#define IDC_FCTS_ATAN_USE_STATIC        1054
#define IDC_FCTS_COS_USE_STATIC         1055
#define IDC_FCTS_COSH_USE_STATIC        1056
#define IDC_FCTS_DEG_USE_STATIC         1057
#define IDC_FCTS_EXP_USE_STATIC         1058
#define IDC_FCTS_LN_USE_STATIC          1059
#define IDC_FCTS_LOG_USE_STATIC         1060
#define IDC_FCTS_LOGN_USE_STATIC        1061
#define IDC_FCTS_NAP_USE_STATIC         1062
#define IDC_FCTS_NCP_USE_STATIC         1063
#define IDC_FCTS_PRODUCT_USE_STATIC     1064
#define IDC_FCTS_RAD_USE_STATIC         1065
#define IDC_FCTS_SIN_USE_STATIC         1066
#define IDC_FCTS_SINH_USE_STATIC        1067
#define IDC_FCTS_SQRT_USE_STATIC        1068
#define IDC_FCTS_SQRTN_USE_STATIC       1069
#define IDC_FCTS_SUM_USE_STATIC         1070
#define IDC_FCTS_TAN_USE_STATIC         1071
#define IDC_FCTS_TANH_USE_STATIC        1072
#define IDC_OPERS_AVAILABLE_STATIC      1073
#define IDC_OPERS_USES_STATIC           1074
#define IDC_OPERS_ADDITION_DEF_STATIC   1075
#define IDC_OPERS_SUBTRACTION_DEF_STATIC 1076
#define IDC_OPERS_MULTIPLICATION_DEF_STATIC 1077
#define IDC_OPERS_DIVISION_DEF_STATIC   1078
#define IDC_OPERS_POWER_DEF_STATIC      1079
#define IDC_OPERS_MODULUS_DEF_STATIC    1080
#define IDC_OPERS_PARENTHESIS_DEF_STATIC 1081
#define IDC_OPERS_UNARYPLUS_DEF_STATIC  1082
#define IDC_OPERS_UNARYMINUS_DEF_STATIC 1083
#define IDC_OPERS_ASSIGNEMENT_DEF_STATIC 1084
#define IDC_OPERS_FACTORIAL_DEF_STATIC  1085
#define IDC_OPERS_DEGTORAD_DEF_STATIC   1086
#define IDC_ERRORS_SYNTAX               1087
#define IDC_ERRORS_CODES                1088
#define IDC_ERRORS_DESCRIPTIONS         1089
#define IDC_ERRORS_MATHEMATIC           1090
#define IDC_ERRORS_FUNCTIONS            1091
#define IDC_ERRORS_PARAMETERS           1092
#define IDC_ERRORS_VARIABLES            1093
#define IDC_ERRORS_DOMAIN               1094
#define IDC_ERRORS_PARSER               1095
#define IDC_ERRORS_1001                 1096
#define IDC_ERRORS_1002                 1097
#define IDC_ERRORS_1003                 1098
#define IDC_ERRORS_1004                 1099
#define IDC_ERRORS_2001                 1100
#define IDC_ERRORS_2002                 1101
#define IDC_ERRORS_2003                 1102
#define IDC_ERRORS_2004                 1103
#define IDC_ERRORS_2005                 1104
#define IDC_ERRORS_2006                 1105
#define IDC_ERRORS_2007                 1106
#define IDC_ERRORS_2008                 1107
#define IDC_ERRORS_3001                 1108
#define IDC_ERRORS_3002                 1109
#define IDC_ERRORS_3003                 1110
#define IDC_ERRORS_4001                 1111
#define IDC_ERRORS_4002                 1112
#define IDC_ERRORS_5001                 1113
#define IDC_ERRORS_5002                 1114
#define IDC_ERRORS_5003                 1115
#define IDC_ERRORS_6001                 1116
#define IDC_ERRORS_6002                 1117
#define IDC_ERRORS_6003                 1118
#define IDC_ERRORS_6004                 1119
#define IDC_ERRORS_6005                 1120
#define IDC_ERRORS_9001                 1121
#define IDC_ERRORS_9009                 1122

// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        121
#define _APS_NEXT_COMMAND_VALUE         32771
#define _APS_NEXT_CONTROL_VALUE         1123
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Accenture Technology Solutions
France France

Toxcct is an electronics guy who felt in love with programming at the age of 10 when he discovered C to play with Texas-Instruments calculators.

Few years later, he discovered "The C++ Language" from Bjarne Stroustrup ; a true transformation in his life.

Now, toxcct is experiencing the Web by developing Siebel CRM Applications for a living. He also respects very much the Web Standards (YES, a HTML/CSS code MUST validate !), and plays around with HTML/CSS/Javascript/Ajax/PHP and such.

_____

After four years of services as a Codeproject MVP, toxcct is now taking some distance as he doesn't like how things are going on the forums. he particularly doesn't accept how some totally ignorant people got the MVP Reward by only being arrogant and insulting while replying on the technical forums.



Comments and Discussions