I am working on a calculator, and I need to know: is there any code in C++ for a button?

December 29th, 2004, 07:11 PM

lokeshdb_ms

it's qiute confusing speciefy the compiler.... if tc++ u have to design the code yourself.

December 29th, 2004, 09:08 PM

MoonWolf

I think lokeshdb_ms anwser although partially correct is a bit confusing.

draxx, im going to explain this on the basis of u knowing zit on windows programming(sorry if I insult you this way)

I think you want to make a calc.exe like program. This means you need to make a program with a lot of buttons and stuff. This also means you need to make a new window assign properties and the likes.

C or C++ as a bare system has no functionality to code GUI windows apps it is meant for creating console programs. Micrsoft has Visual C++ with all the stuff build right in to the thing to enable you to write nice windows aps. But other compilers are yust as able thanks to the correct libraries and header files. (if you are still looking try dev-cpp as a dev env)

There are tons of ways to create windows aps. Microsoft has released a set of templates that can be used and stuff. Or you can do it yourself.