Very Cheap Calculator

A section for all development and testing programmes and customised browsers written by SillyDog701 community. Featured products including Donzilla, Firescape, DJGM Distro, and Netscape Streamline.

Moderator: Don_HH2K

Very Cheap Calculator

Postby beanboy89 » Sat 16 Dec, 2006 11:06 pm

Inspired by Antony's Cheap Calculator, I decided to create my own calculator application, titled Very Cheap Calculator. Unlike Cheap Calculator, the program is run in a Command Prompt; there is no GUI, and that is how the program got its name.

Screenshot

Very Cheap Calculator 0.1 - Win32 Executable
*note: You may need the Microsoft Visual C++ 2005 Redistributable Package to run this program.

Source
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1) Gecko/20061101 SeaMonkey/1.1b
User avatar
beanboy89
diamond member
diamond member
 
Posts: 1683
Joined: Sun 16 May, 2004 8:56 am

Postby Antony » Sun 17 Dec, 2006 12:14 pm

I just tested it, and it does not work on my Windows 2000 Professional (SP4).
Image
UserAgent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
User avatar
Antony
diamond member
diamond member
 
Posts: 14930
Joined: Tue 18 Jun, 2002 11:36 pm
Location: Sydney, Australia

Postby Don_HH2K » Sun 17 Dec, 2006 1:02 pm

Did you download the Visual C++ 2005 Redist pack? MSVCP80.dll is part of it.
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0 x64; en-US; rv:1.8.1) Gecko/20061030 BonEcho/2.0 (mmoy CE K8N-X02)
Laptop: HP Compaq nx6325 - Turion 64 X2 @ 2GHz, 2GB DDR2, 100GB HD, ATI Radeon X300, 15" LCD, Seven Pro
Handheld: Palm Treo 650 - Intel PXA270 @ 312MHz, 10MB RAM, 32MB flash, 2.7" LCD, Palm OS 5.4
User avatar
Don_HH2K
Moderator
Moderator
 
Posts: 5112
Joined: Sun 09 May, 2004 3:59 pm

Postby Pu7o » Sun 17 Dec, 2006 1:07 pm

Also, the source code compiles under your beloved Mac OS X.
UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.1) Gecko/20061215 BonEcho/2.0.0.1 Macfox/0.2
User avatar
Pu7o
Macfox
Macfox
 
Posts: 2014
Joined: Thu 06 Jan, 2005 12:03 pm
Location: Portugal

Postby Antony » Sun 17 Dec, 2006 1:29 pm

Don_HH2K wrote:Did you download the Visual C++ 2005 Redist pack? MSVCP80.dll is part of it.
No.

The only software I installed are QuickTime Player 7 and WinZip. Nothing other than aforementioned software and SP4 was installed (not even MSIE 5.5, which Windows Update website wants me to upgrade.)
UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en) AppleWebKit/418.9.1 (KHTML, like Gecko) Safari/419.3
User avatar
Antony
diamond member
diamond member
 
Posts: 14930
Joined: Tue 18 Jun, 2002 11:36 pm
Location: Sydney, Australia

Postby Don_HH2K » Sun 17 Dec, 2006 1:35 pm

Well, it's no surprise that a VC8-compiled program won't run if you don't have the VC8 runtime installed.
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0 x64; en-US; rv:1.8.1) Gecko/20061030 BonEcho/2.0 (mmoy CE K8N-X02)
Laptop: HP Compaq nx6325 - Turion 64 X2 @ 2GHz, 2GB DDR2, 100GB HD, ATI Radeon X300, 15" LCD, Seven Pro
Handheld: Palm Treo 650 - Intel PXA270 @ 312MHz, 10MB RAM, 32MB flash, 2.7" LCD, Palm OS 5.4
User avatar
Don_HH2K
Moderator
Moderator
 
Posts: 5112
Joined: Sun 09 May, 2004 3:59 pm

Postby Antony » Sun 17 Dec, 2006 1:42 pm

I hope the Very Cheap Calculator 0.1 can be compiled to executable file without the need of special runtime environment/engine.

(The Cheap Calculator I compiled does not need special runtime environment installed.)
UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0
User avatar
Antony
diamond member
diamond member
 
Posts: 14930
Joined: Tue 18 Jun, 2002 11:36 pm
Location: Sydney, Australia

Postby Don_HH2K » Sun 17 Dec, 2006 1:59 pm

Antony wrote:I hope the Very Cheap Calculator 0.1 can be compiled to executable file without the need of special runtime environment/engine.


Anybody with GCC/Win32 or some older version of MSVC want to compile this for us?

Antony wrote:(The Cheap Calculator I compiled does not need special runtime environment installed.)


Sure it does. You need a Cocoa runtime.
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0 x64; en-US; rv:1.8.1) Gecko/20061030 BonEcho/2.0 (mmoy CE K8N-X02)
Laptop: HP Compaq nx6325 - Turion 64 X2 @ 2GHz, 2GB DDR2, 100GB HD, ATI Radeon X300, 15" LCD, Seven Pro
Handheld: Palm Treo 650 - Intel PXA270 @ 312MHz, 10MB RAM, 32MB flash, 2.7" LCD, Palm OS 5.4
User avatar
Don_HH2K
Moderator
Moderator
 
Posts: 5112
Joined: Sun 09 May, 2004 3:59 pm

Postby beanboy89 » Sun 17 Dec, 2006 5:08 pm

Don_HH2K wrote:
Antony wrote:I hope the Very Cheap Calculator 0.1 can be compiled to executable file without the need of special runtime environment/engine.


Anybody with GCC/Win32 or some older version of MSVC want to compile this for us?

I could compile it at school using MSVC 6.0, but you might have to wait until after the new year to get it.
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1) Gecko/20061101 SeaMonkey/1.1b
User avatar
beanboy89
diamond member
diamond member
 
Posts: 1683
Joined: Sun 16 May, 2004 8:56 am

Postby beanboy89 » Tue 19 Dec, 2006 7:58 pm

beanboy89 wrote:
Don_HH2K wrote:
Antony wrote:I hope the Very Cheap Calculator 0.1 can be compiled to executable file without the need of special runtime environment/engine.


Anybody with GCC/Win32 or some older version of MSVC want to compile this for us?

I could compile it at school using MSVC 6.0, but you might have to wait until after the new year to get it.

I have some good news and some bad news regarding compiling in MSVC 6.0.

First the bad news: Although I was unable to compile Very Cheap Calculator 0.1 from the source in MSVC 6.0. It seems that the code that I'm using to make the program pause after the answer is calculated, [tt]system("PAUSE");[/tt], is not compatible in MSVC 6.0. If I remove the line with that code in it, the program compiles, but immediately quits after running... Does anyone know of something like [tt]system("PAUSE");[/tt] that works in MSVC 6.0?

Now the good news, after the school's network drives were down yesterday for backing up (due to being at 91% capacity), no data was lost. I also discovered that my school has Novell NetStorage, so I can access my school network drive from home, meaning that I can download any of my C++ projects, along with any versions of Very Cheap Calculator that I happen to compile at school.
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1) Gecko/20061101 SeaMonkey/1.1b
User avatar
beanboy89
diamond member
diamond member
 
Posts: 1683
Joined: Sun 16 May, 2004 8:56 am

Postby Pu7o » Tue 19 Dec, 2006 9:08 pm

You need to do [tt]#include <stdlib.h>[/tt] to use system() in MSVC 6.
UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.1) Gecko/20061215 BonEcho/2.0.0.1 Macfox/0.2
User avatar
Pu7o
Macfox
Macfox
 
Posts: 2014
Joined: Thu 06 Jan, 2005 12:03 pm
Location: Portugal

Postby beanboy89 » Wed 20 Dec, 2006 5:25 pm

Pu7o wrote:You need to do [tt]#include <stdlib.h>[/tt] to use system() in MSVC 6.

Thanks, Pedro. Adding that seemed to work. Now with that done...

Very Cheap Calculator 0.1 (MSVC 6.0) - Win32 Executable - Compiled in Microsoft Visual C++ 6.0.
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1) Gecko/20061101 SeaMonkey/1.1b
User avatar
beanboy89
diamond member
diamond member
 
Posts: 1683
Joined: Sun 16 May, 2004 8:56 am


Return to SD701 DevZone

Who is online

Registered users: Google [Bot]