Very Cheap Calculator

You are here:  SillyDog701 > Message Centre > SD701 DevZone > [sdt=12668]
SillyDog701 Forums
Author Message
beanboy89
diamond member


Joined: 16 May 2004
Posts: 1470
16 Dec, 2006 10:06 pm Very Cheap Calculator [sdp=80496]  

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

...
Back to top profile website
Antony
Site Admin


Joined: 18 Jun 2002
Posts: 12754
Location: Sydney, Australia
17 Dec, 2006 11:14 am [sdp=80503]  

I just tested it, and it does not work on my Windows 2000 Professional (SP4).


UserAgent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)

Back to top profile website
Don_HH2K
Moderator


Joined: 09 May 2004
Posts: 4745
17 Dec, 2006 12:02 pm [sdp=80504]  

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: Turion 64 X2 @ 2GHz, 2GB DDR2-667, 100GB HD, ATI Radeon X300, 15" LCD, Seven Ultimate RC
Back to top profile website
Pu7o
Macfox


Joined: 06 Jan 2005
Posts: 1978
Location: Portugal
17 Dec, 2006 12:07 pm [sdp=80505]  

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
Back to top profile website
Antony
Site Admin


Joined: 18 Jun 2002
Posts: 12754
Location: Sydney, Australia
17 Dec, 2006 12:29 pm [sdp=80507]  

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

Back to top profile website
Don_HH2K
Moderator


Joined: 09 May 2004
Posts: 4745
17 Dec, 2006 12:35 pm [sdp=80508]  

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: Turion 64 X2 @ 2GHz, 2GB DDR2-667, 100GB HD, ATI Radeon X300, 15" LCD, Seven Ultimate RC
Back to top profile website
Antony
Site Admin


Joined: 18 Jun 2002
Posts: 12754
Location: Sydney, Australia
17 Dec, 2006 12:42 pm [sdp=80509]  

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

Back to top profile website
Don_HH2K
Moderator


Joined: 09 May 2004
Posts: 4745
17 Dec, 2006 12:59 pm [sdp=80512]  

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: Turion 64 X2 @ 2GHz, 2GB DDR2-667, 100GB HD, ATI Radeon X300, 15" LCD, Seven Ultimate RC
Back to top profile website
beanboy89
diamond member


Joined: 16 May 2004
Posts: 1470
17 Dec, 2006 4:08 pm [sdp=80517]  

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

...
Back to top profile website
beanboy89
diamond member


Joined: 16 May 2004
Posts: 1470
19 Dec, 2006 6:58 pm [sdp=80604]  

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, system("PAUSE");, 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 system("PAUSE"); 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

...
Back to top profile website
Pu7o
Macfox


Joined: 06 Jan 2005
Posts: 1978
Location: Portugal
19 Dec, 2006 8:08 pm [sdp=80607]  

You need to do #include <stdlib.h> 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
Back to top profile website
beanboy89
diamond member


Joined: 16 May 2004
Posts: 1470
20 Dec, 2006 4:25 pm [sdp=80645]  

Pu7o wrote:
You need to do #include <stdlib.h> 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

...
Back to top profile website
Display posts from previous:   
Reply to topic    Forum Index > SD701 DevZone All times are CST (GMT -6)
page 1 of 1
To add your questions, comments, and for more features and more, please join SillyDog701 Message Centre. It's free! This is SillyDog 701 Message Centre (SD701 Forums).

The Little Mermaid iTunes

*Search | FAQ | Rules and Policies | MozInfo701 - Mozilla Information Centre | SD701 Open Directory | Message Board Map | download Netscape