C++ Example?

Could someone please send me an example code of a c++ program that has a Window with a button and a textfield. When the button is clicked it displays the word "Hello" In the textfield.
I want this because i  want to see how c++ works and what it's like.
I learn well from looking at code!
And I know alot of you will say you can't learn from an example but I know java and I just want a look.
Could you please keep the code simple and comment it? Thanks!!
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Why don't you get the book "Programming Windows" by Charles Petzold?  It's the best introductory text to the Windows API and will introduce you to all the basic concepts.  It's packed with examples and is a valuable resources even to veteran Windows programmers.
If you have no knowledge of C++ , reading a Windows Program is really confusing . Try studying DOS programs first .
What compiler and OS are you using?
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

dvd99Author Commented:
i am using Win98 but I don't plan to complie it just have a look, it shouldn't be too confusing!
if you want to develop windows you have to use vc++.if you are ready to use vc++ then i will give solution to your problem.


for further queries welcome.
Wait, I have to agree with WxW. If you are learning C++ stay away from Windows for a while. It is confusing.
You won't learn C++ from using VC or BCB, stay away from them until you understand\footnote{Upto a certain degree} C++
dvd99Author Commented:
ok then can someone please give me a dos "Hello world example?" and how to complie it and run the exe?
#include <iostream.h>

int main(void)
  cout << "Hello World!";
  return 0;

Press CTRL-F9 to compile on most compilers...

>>if you want to develop windows you have to use vc++
btw, this is not true AT ALL!! You can use other compilers to develop Win32 apps....


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
And , the best way of learning C++ is to use a NON visual compiler . Otherwise you are limited to the features the visual editor provides .


#include <stdio.h>
int main()
  printf("Hello World!\r\n");
  return 0;
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.