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

ความคิดเห็น • 111

  • @brysondale4383
    @brysondale4383 3 ปีที่แล้ว +11

    Was looking for this, recognized your name from your other helpful tutorials and knew I had to click on it. Didn't disappoint.

  • @cac2244
    @cac2244 2 ปีที่แล้ว +6

    This helped me a lot to go from console apps to my first GUI...thanks.

    • @PaulOamen
      @PaulOamen  2 ปีที่แล้ว

      Glad it helped!

  • @arieflukmanhakim5340
    @arieflukmanhakim5340 3 ปีที่แล้ว +1

    Terima kasih Pak Paul Oamen. Sangat bermanfaat. Semoga selalu sehat dan berbahagia. Salam dari Kota Malang Indonesia

    • @PaulOamen
      @PaulOamen  3 ปีที่แล้ว +1

      Terima kasih arief lukman hakim. Greetings to Kota Malang Indonesia

  • @aliahmed-qe4yh
    @aliahmed-qe4yh 3 ปีที่แล้ว +6

    this is the way to learn programming............great job

  • @HomikiGaming
    @HomikiGaming 3 ปีที่แล้ว +2

    The best video about creating calculator in C++. Thank you so much

    • @PaulOamen
      @PaulOamen  3 ปีที่แล้ว +1

      Glad it was helpful!

  • @faustostella4357
    @faustostella4357 3 ปีที่แล้ว

    Thank you for the nice tutorial! Your shady voice makes it even more interesting.

    • @PaulOamen
      @PaulOamen  2 ปีที่แล้ว

      Glad you think so!

  • @rana_xvi
    @rana_xvi ปีที่แล้ว +2

    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 :)

    • @PaulOamen
      @PaulOamen  ปีที่แล้ว

      Glad it helped!

  • @MuhammadRifky121
    @MuhammadRifky121 ปีที่แล้ว +1

    Makasih saya dari Indonesia

    • @PaulOamen
      @PaulOamen  ปีที่แล้ว +1

      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

  • @mrcsnbr
    @mrcsnbr ปีที่แล้ว

    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.

    • @PaulOamen
      @PaulOamen  ปีที่แล้ว +1

      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

  • @patric6465
    @patric6465 ปีที่แล้ว +2

    Thanks very much for the video, but where did you declared txtDisplay from 9:34 ?

    • @patric6465
      @patric6465 ปีที่แล้ว

      Ok i figured it out, maybe you changed it s name from proprieties. Thanks anyway.

    • @PaulOamen
      @PaulOamen  ปีที่แล้ว

      Very good

    • @PaulOamen
      @PaulOamen  ปีที่แล้ว

      Thanks

  • @abdulmohab8125
    @abdulmohab8125 3 ปีที่แล้ว +4

    MashAllah... I appreciate your efforts and works...!!!

    • @PaulOamen
      @PaulOamen  3 ปีที่แล้ว +1

      So nice of you

  • @willcolletti4357
    @willcolletti4357 2 ปีที่แล้ว +1

    hello, I can't find in the clr extension for the project in order to make this, where can I find it

    • @PaulOamen
      @PaulOamen  2 ปีที่แล้ว

      You may have not installed clr, check and modify your installation by checking the clr checkbox

  • @mazecraze0674
    @mazecraze0674 3 ปีที่แล้ว +14

    This video was very informative and very satisfying to listen to!

    • @PaulOamen
      @PaulOamen  3 ปีที่แล้ว

      Glad you enjoyed it!

  • @blueblues2418
    @blueblues2418 3 ปีที่แล้ว +1

    Thank you, you're a life saver

  • @hidinginyoursoup
    @hidinginyoursoup 3 ปีที่แล้ว +1

    I DID IT omg thank you a lot

  • @SindunaVeronicaNgaba
    @SindunaVeronicaNgaba 3 ปีที่แล้ว +2

    Great video! What is the time complexity?

  • @theundeadforever3300
    @theundeadforever3300 4 ปีที่แล้ว +2

    It worked, thanks.

    • @PaulOamen
      @PaulOamen  4 ปีที่แล้ว

      Glad it helped

  • @yorkrogers990
    @yorkrogers990 3 ปีที่แล้ว

    Im from^ Peru:: {Muchas gracias Paul..great tutorial.} exit.

  • @MARIOGARCIA-gy7xn
    @MARIOGARCIA-gy7xn 4 ปีที่แล้ว +3

    thank you so much, really good video men. If you do more videos about project like this would be very good,

    • @PaulOamen
      @PaulOamen  4 ปีที่แล้ว

      Thanks, will do! See my other channel DJ Oamen

  • @silvermoon4670
    @silvermoon4670 3 ปีที่แล้ว +1

    Thanks for good explanation 👍 👏

    • @PaulOamen
      @PaulOamen  3 ปีที่แล้ว

      Glad you liked it

  • @mohamadmaleki3026
    @mohamadmaleki3026 3 ปีที่แล้ว +3

    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

    • @PaulOamen
      @PaulOamen  3 ปีที่แล้ว +1

      Try again

    • @yorkrogers990
      @yorkrogers990 3 ปีที่แล้ว +2

      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.

  • @adityakatre5386
    @adityakatre5386 3 ปีที่แล้ว

    thank you, it save my lot of time .

    • @PaulOamen
      @PaulOamen  3 ปีที่แล้ว +1

      You're welcome!

  • @amitraz5442
    @amitraz5442 3 ปีที่แล้ว

    Thank you so much for this wonderful tutorial

    • @PaulOamen
      @PaulOamen  3 ปีที่แล้ว +1

      Most welcome 😊

  • @kadekmentik
    @kadekmentik 3 ปีที่แล้ว +1

    Thanks for the tutorial, it is really helpful

    • @kadekmentik
      @kadekmentik 3 ปีที่แล้ว

      i cant find CLR empty project

    • @kadekmentik
      @kadekmentik 3 ปีที่แล้ว

      Got it, i solved the problem
      docs.microsoft.com/en-us/cpp/dotnet/dotnet-programming-with-cpp-cli-visual-cpp?view=msvc-160

    • @PaulOamen
      @PaulOamen  3 ปีที่แล้ว

      Glad it was helpful!

  • @abdulmohab8125
    @abdulmohab8125 3 ปีที่แล้ว +1

    Thank u so much sir g

    • @PaulOamen
      @PaulOamen  3 ปีที่แล้ว

      Most welcome

  • @NOTASHEN
    @NOTASHEN 2 ปีที่แล้ว

    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

    • @PaulOamen
      @PaulOamen  2 ปีที่แล้ว +1

      ^ is a pointer

    • @NOTASHEN
      @NOTASHEN 2 ปีที่แล้ว +1

      @@PaulOamen Thanks for the reply

  • @marioc3810
    @marioc3810 4 ปีที่แล้ว +17

    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.

    • @PaulOamen
      @PaulOamen  4 ปีที่แล้ว +5

      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

  • @blackburnmichelson6189
    @blackburnmichelson6189 3 ปีที่แล้ว

    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

    • @PaulOamen
      @PaulOamen  3 ปีที่แล้ว

      Check this channel out for video tutorial on C++: th-cam.com/users/djoamen

  • @haldharpatel3915
    @haldharpatel3915 3 ปีที่แล้ว

    Thanks it is really helpful 👍

    • @PaulOamen
      @PaulOamen  3 ปีที่แล้ว

      Glad it helped

  • @aleksandrpanibratenko5581
    @aleksandrpanibratenko5581 2 ปีที่แล้ว +2

    ​ @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);
    }

    • @PaulOamen
      @PaulOamen  2 ปีที่แล้ว +1

      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

  • @LegendGaming-vq4nq
    @LegendGaming-vq4nq 4 ปีที่แล้ว +2

    it works

  • @axe1__
    @axe1__ 3 ปีที่แล้ว

    thank you so much

    • @PaulOamen
      @PaulOamen  3 ปีที่แล้ว

      You're welcome!

  • @whois_was_will5705
    @whois_was_will5705 3 ปีที่แล้ว

    feeling very lucky to find this video where can i get the source code of this program please

    • @PaulOamen
      @PaulOamen  3 ปีที่แล้ว

      Thanks for you comment, for more supportive video tutorial, visit my first channel: th-cam.com/users/DJOamen

  • @LegendGaming-vq4nq
    @LegendGaming-vq4nq 4 ปีที่แล้ว +2

    thank you bro

    • @PaulOamen
      @PaulOamen  4 ปีที่แล้ว

      You're welcome!

  • @tr123ap6
    @tr123ap6 4 ปีที่แล้ว

    very useful sir

    • @PaulOamen
      @PaulOamen  4 ปีที่แล้ว

      So nice of you

  • @gainbrain1338
    @gainbrain1338 3 ปีที่แล้ว

    thanks Man

    • @PaulOamen
      @PaulOamen  3 ปีที่แล้ว +1

      Happy to help

  • @moyboy5305
    @moyboy5305 3 ปีที่แล้ว

    im in the latest version of visual studio code, where do i create a new project?

    • @PaulOamen
      @PaulOamen  3 ปีที่แล้ว +1

      Watch to video step by step to understand

    • @raanitaj4673
      @raanitaj4673 3 ปีที่แล้ว

      yo have to install the clr

  • @NR-qc3xe
    @NR-qc3xe 3 ปีที่แล้ว

    thank you

    • @PaulOamen
      @PaulOamen  3 ปีที่แล้ว

      You're welcome

  • @MoamenMostafa
    @MoamenMostafa 3 ปีที่แล้ว

    MashaAlllah

  • @joejangala
    @joejangala 3 ปีที่แล้ว

    Can we make the same using c language....???

    • @PaulOamen
      @PaulOamen  3 ปีที่แล้ว +1

      Yes you can

    • @joejangala
      @joejangala 3 ปีที่แล้ว

      @@PaulOamen but how???

  • @talha_coding_tutor
    @talha_coding_tutor ปีที่แล้ว

    how did U do that

    • @PaulOamen
      @PaulOamen  ปีที่แล้ว

      Carefully watch the video tutorial

  • @Anonymous-ov1vh
    @Anonymous-ov1vh 4 ปีที่แล้ว +4

    Plzz make more videos on c++ and visual studio.

    • @PaulOamen
      @PaulOamen  4 ปีที่แล้ว +2

      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

  • @dashasharafutdinova6580
    @dashasharafutdinova6580 3 ปีที่แล้ว

    Good afternoon, I would like to know, but how does the program understand what action is assigned to any button? (+, -, *, /) :)

    • @PaulOamen
      @PaulOamen  3 ปีที่แล้ว

      Check this channel out for more understanding: th-cam.com/users/djoamen

  • @fICopErPolut
    @fICopErPolut 2 ปีที่แล้ว

    Как сделать двойное нажатие на "="?

    • @PaulOamen
      @PaulOamen  2 ปีที่แล้ว

      Использовать двойной щелчок по событию

  • @dylannay6933
    @dylannay6933 3 ปีที่แล้ว

    how to do it with Mac

    • @PaulOamen
      @PaulOamen  3 ปีที่แล้ว

      I don't use Mac

  • @tymzi6484
    @tymzi6484 3 ปีที่แล้ว +1

    i dont have clr

    • @PaulOamen
      @PaulOamen  3 ปีที่แล้ว

      Right the project name on the solution explorer and select add item

  • @RixtronixLAB
    @RixtronixLAB 4 ปีที่แล้ว

    Cool video :)

    • @PaulOamen
      @PaulOamen  4 ปีที่แล้ว

      Thanks for the visit

  • @666Mantios666
    @666Mantios666 3 ปีที่แล้ว

    HOw about % function ?? :D

    • @PaulOamen
      @PaulOamen  3 ปีที่แล้ว

      Check out the this channel: th-cam.com/users/DJOamen

  • @mig7287
    @mig7287 2 ปีที่แล้ว

    👍👍

    • @PaulOamen
      @PaulOamen  2 ปีที่แล้ว

      You're welcome!

  • @ishort11
    @ishort11 3 ปีที่แล้ว

    thank you

    • @PaulOamen
      @PaulOamen  3 ปีที่แล้ว

      You're welcome!