question?

A

abass

How I can simple program with visual C++ that program get
user two number and then add these and show result in
other window.
 
W

William DePalo [MVP VC++ ]

abass said:
How I can simple program with visual C++ that program get
user two number and then add these and show result in
other window.

Basically, your question can be reduced to this: How can I create a simple
dialog-based application with two input boxes and a static control for the
result?

For someone who has experience with Windows this is a 30 minute exercise.
For someone who does not, it can take days to create his first Windows
program. There is no easy way to describe the procedure in a newsgroup post
(at least not for me).

If you use the C language, I'd suggest getting a hold of Charles Petzold
book "Programming Windows". (Be careful to get the right book, the latest
edition uses C#)

If you are more comfortable in C++, I'd suggest Jeff Prosise's book
"Programming Windows with MFC".

Alternatively, you could choose to create a new MFC project in the IDE and
select the "dialog based" application type. The wizard will write the boiler
plate for you. You will need to fill in the details. But without having done
this once or a good reference it will likely be a frustrating experience.

Regards,
Will
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top