Click to open or copy the Dspcalc2 project files.
The Dspcalc2 sample is a simple accumulator-based calculator. Its user interface consists of buttons for the numbers (0-9), the operators (+, -, *, /), and some other necessary buttons (C for Clear, = for evaluation).
This sample uses the following keywords:
addref; ansistring; assert; button; buttonpush; c2pstr; carith; ccalc; ccalccf; convertstrwtoa; coregisterclassobject; corevokeclassobject; create; createdialog; createinstance; createstddispatch; data_seg; dcclear; define_guid; defined; defwindowproc; delay; dim; dispatchmessage; display; ensureregistration; eval; failed; get_accum; get_op; get_opnd; getditem; getitem; getmenuitemtext; getmessage; gettypeinfoofguid; header; hilitecontrol; initapplication; initinstance; initole; isequaliid; loadcursor; loadicon; loadregtypelib; loadtypelib; lockserver; messagebox; oleinitialize; olestr; oleuninitialize; postquitmessage; put_accum; put_op; put_opnd; queryinterface; quit; regclosekey; registeractiveobject; registerclass; regopenkey; regsetvalue; release; revokeactiveobject; safearraygetelement; safearraygetubound; sendmessage; setdlgitemtext; setitext; showwindow; stdmethod; stdmethod_; stdmethodimp_; strcpy; string; switch; sysstringlen; translatemessage; tstr; uninitole; unused; variantchangetype; variantclear; variantinit; warning; widechartomultibyte; widestring; winmain; wndproc