How to Create a Calculator in C++ using Visual Studio 2019
ฝัง
- เผยแพร่เมื่อ 7 ก.พ. 2025
- How to Create a Calculator in C++ using Visual Studio 2019. In this tutorial, you will learn how to create a Form in C++, and then add components to develop a functioning Calculator.
See details of the Forum, Create C++ Windows Forms application in Visual Studio 2017:
social.msdn.mi...
Buy me a coffee: www.paypal.me/...
To support more videos from Captain's channel, visit POamen Paypal
www.paypal.me/...
Buy me a coffee: www.paypal.me/...
Visit DJ Oamen Channel:
/ @djoamen
DJ Oamen Channel:
/ djoamen
Was looking for this, recognized your name from your other helpful tutorials and knew I had to click on it. Didn't disappoint.
👍
This helped me a lot to go from console apps to my first GUI...thanks.
Glad it helped!
Terima kasih Pak Paul Oamen. Sangat bermanfaat. Semoga selalu sehat dan berbahagia. Salam dari Kota Malang Indonesia
Terima kasih arief lukman hakim. Greetings to Kota Malang Indonesia
this is the way to learn programming............great job
👍
The best video about creating calculator in C++. Thank you so much
Glad it was helpful!
Thank you for the nice tutorial! Your shady voice makes it even more interesting.
Glad you think so!
this video was very nice, it helped a lot for my project and even fixed some concepts that i might had misunderstood in class, thank you very much :)
Glad it helped!
Makasih saya dari Indonesia
Terima kasih Muhammad Rifky, dan salam sejahtera semuanya dan sekali lagi terima kasih sudah menggunakan channel saya. Anda juga dapat melihat saluran utama saya, lihat tautan di bawah dan ikuti saya di TikTok
www.youtube.com/@DJOamen
www.tiktok.com/@icaptainpaul
Thank you Sir, so much appreciate. I was almost losing it because everything was working well but the decimal operations. I followed exactly what you did and I was getting an error whenever I tried to do an operation with a decimal number. Turned out that since my system operator is in Spanish I needed to change the dot " . " for a comma " , " lmao, it's working well now. I'm definitely going to check more of your videos.
You're welcome! You should subscribe to the channel.
And
For more interesting video tutorials, visit my other channel DJ Oamen with 2,405 video tutorials:
youtube.com/@DJOamen
Thanks very much for the video, but where did you declared txtDisplay from 9:34 ?
Ok i figured it out, maybe you changed it s name from proprieties. Thanks anyway.
Very good
Thanks
MashAllah... I appreciate your efforts and works...!!!
So nice of you
hello, I can't find in the clr extension for the project in order to make this, where can I find it
You may have not installed clr, check and modify your installation by checking the clr checkbox
This video was very informative and very satisfying to listen to!
Glad you enjoyed it!
Thank you, you're a life saver
Glad to hear that!
lol nice
I DID IT omg thank you a lot
👍
Great video! What is the time complexity?
Depends
It worked, thanks.
Glad it helped
Im from^ Peru:: {Muchas gracias Paul..great tutorial.} exit.
Thanks bro
thank you so much, really good video men. If you do more videos about project like this would be very good,
Thanks, will do! See my other channel DJ Oamen
Thanks for good explanation 👍 👏
Glad you liked it
Dear Paul, thanks a lot for the video. I've done all exactly the way you explained but at time 11:14 it throws Error LNK2001 and LNK1120. How should I handle these errors? thanks
Try again
hola Mohama,,creo que me paso a mi tambien. y fue porque puse "Main" en lugar de "main" y Configuration:Active(Debug) at 2:20 goodluck.
thank you, it save my lot of time .
You're welcome!
Thank you so much for this wonderful tutorial
Most welcome 😊
Thanks for the tutorial, it is really helpful
i cant find CLR empty project
Got it, i solved the problem
docs.microsoft.com/en-us/cpp/dotnet/dotnet-programming-with-cpp-cli-visual-cpp?view=msvc-160
Glad it was helpful!
Thank u so much sir g
Most welcome
I am fairly new to coding stuff and i wanted to know why ^ symbol is needed when creating the object button in line 383 or 9:01 timestamp
^ is a pointer
@@PaulOamen Thanks for the reply
Hi Paul, In parallel to my work i have been learning C++ for like 2 years, but i would like to comment on something, following your videos i can make my calculator to work with several changes that are omitted in the video, like the name of the display is different and the button "." is also different, but as a beginner i can figure it out how to solve it, but i realize that i'm just doing copy and paste, is it possible that you make a video or point me where i can find the secrets of visual studio, i mean where all these precooked code come from, what they mean... i want to understand the logic behind of what you are doing you know..... do you know the saying
"Give a Man a Fish, and You Feed Him for a Day. Teach a Man To Fish, and You Feed Him for a Lifetime"
Your videos really teach real and practical applications.
Thanks so much.
Hello Mario, thanks for you kind words. Well since you asked I have a lot for you to learn. Visit my main TH-cam Channel called DJ Oamen, here is the link below: th-cam.com/channels/Ftw9CfTfMKU9aHZsT2teYg.html
Next task is for you to check out those Visual C++ video tutorial:
How to Create Payroll Management System in Visual C++:
th-cam.com/video/5XIgvfxwPKU/w-d-xo.html
Tic Tac Toe in Visual C++
th-cam.com/video/hYEEofdVOSY/w-d-xo.html
Piano in Visual C++
th-cam.com/video/r2BPLJJelSU/w-d-xo.html
Get back to me on the DJ Oamen Channel
Good Luck
very good video but i want to learn more on c++ i can use console app very good but i can not use this win form how can i found any source for this win form
Check this channel out for video tutorial on C++: th-cam.com/users/djoamen
Thanks it is really helpful 👍
Glad it helped
@Paul Oamen Hello! Could you explain what does this code actually mean?
Is this a standart solution for error from "MyForm.h"?
Sorry i couldn't understand
using namespace System;
using namespace System::Windows::Forms;
[STAThreadAttribute]
void Main(array^ args) {
Application::EnableVisualStyles();
Application::SetCompatibleTextRenderingDefault(false);
CalculatorTut::MyForm form;
Application::Run(% form);
}
To learn more about the code, click on the link below:
social.msdn.microsoft.com/Forums/en-US/a9529502-6304-4aa6-90ee-0757ab258d87/create-c-windows-forms-application-in-visual-studio-2017?forum=winforms
it works
Well done
thank you so much
You're welcome!
feeling very lucky to find this video where can i get the source code of this program please
Thanks for you comment, for more supportive video tutorial, visit my first channel: th-cam.com/users/DJOamen
thank you bro
You're welcome!
very useful sir
So nice of you
thanks Man
Happy to help
im in the latest version of visual studio code, where do i create a new project?
Watch to video step by step to understand
yo have to install the clr
thank you
You're welcome
MashaAlllah
Thanks
Can we make the same using c language....???
Yes you can
@@PaulOamen but how???
how did U do that
Carefully watch the video tutorial
Plzz make more videos on c++ and visual studio.
Hello AJ Pranav, thanks for you kind words. Well since you asked I have a lot for you to learn. Visit my main TH-cam Channel called DJ Oamen, here is the link below: th-cam.com/channels/Ftw9CfTfMKU9aHZsT2teYg.html
Next task is for you to check out those Visual C++ video tutorial:
How to Create Payroll Management System in Visual C++:
th-cam.com/video/5XIgvfxwPKU/w-d-xo.html
Tic Tac Toe in Visual C++
th-cam.com/video/hYEEofdVOSY/w-d-xo.html
Piano in Visual C++
th-cam.com/video/r2BPLJJelSU/w-d-xo.html
Get back to me on the DJ Oamen Channel
Good Luck
Good afternoon, I would like to know, but how does the program understand what action is assigned to any button? (+, -, *, /) :)
Check this channel out for more understanding: th-cam.com/users/djoamen
Как сделать двойное нажатие на "="?
Использовать двойной щелчок по событию
how to do it with Mac
I don't use Mac
i dont have clr
Right the project name on the solution explorer and select add item
Cool video :)
Thanks for the visit
HOw about % function ?? :D
Check out the this channel: th-cam.com/users/DJOamen
👍👍
You're welcome!
thank you
You're welcome!