How to Create a Calculator in C++ using Visual Studio 2019

Поділитися
Вставка
  • Опубліковано 17 жов 2024
  • 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 роки тому +5

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

  • @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

  • @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

  • @HomikiGaming
    @HomikiGaming 3 роки тому +2

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

    • @PaulOamen
      @PaulOamen  3 роки тому +1

      Glad it was helpful!

  • @patric6465
    @patric6465 Рік тому +1

    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

  • @rana_xvi
    @rana_xvi 10 місяців тому +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 :)

  • @willcolletti4357
    @willcolletti4357 Рік тому +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  Рік тому

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

  • @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

  • @mohamadmaleki3026
    @mohamadmaleki3026 2 роки тому +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  2 роки тому +1

      Try again

    • @yorkrogers990
      @yorkrogers990 2 роки тому +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.

  • @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 UA-cam Channel called DJ Oamen, here is the link below: ua-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++:
      ua-cam.com/video/5XIgvfxwPKU/v-deo.html
      Tic Tac Toe in Visual C++
      ua-cam.com/video/hYEEofdVOSY/v-deo.html
      Piano in Visual C++
      ua-cam.com/video/r2BPLJJelSU/v-deo.html
      Get back to me on the DJ Oamen Channel
      Good Luck

  • @abdulmohab8125
    @abdulmohab8125 3 роки тому +4

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

  • @mazecraze0674
    @mazecraze0674 3 роки тому +14

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

  • @faustostella4357
    @faustostella4357 2 роки тому

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

  • @SindunaVeronicaNgaba
    @SindunaVeronicaNgaba 2 роки тому +2

    Great video! What is the time complexity?

  • @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

  • @MARIOGARCIA-gy7xn
    @MARIOGARCIA-gy7xn 3 роки тому +3

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

    • @PaulOamen
      @PaulOamen  3 роки тому

      Thanks, will do! See my other channel DJ Oamen

  • @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

  • @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++: ua-cam.com/users/djoamen

  • @whois_was_will5705
    @whois_was_will5705 2 роки тому

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

    • @PaulOamen
      @PaulOamen  2 роки тому

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

  • @yorkrogers990
    @yorkrogers990 2 роки тому

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

  • @amitraz5442
    @amitraz5442 3 роки тому

    Thank you so much for this wonderful tutorial

  • @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

  • @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: ua-cam.com/users/djoamen

  • @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!

  • @blueblues2418
    @blueblues2418 3 роки тому +1

    Thank you, you're a life saver

  • @adityakatre5386
    @adityakatre5386 3 роки тому

    thank you, it save my lot of time .

  • @silvermoon4670
    @silvermoon4670 3 роки тому +1

    Thanks for good explanation 👍 👏

  • @hidinginyoursoup
    @hidinginyoursoup 3 роки тому +1

    I DID IT omg thank you a lot

  • @theundeadforever3300
    @theundeadforever3300 3 роки тому +2

    It worked, thanks.

  • @joejangala
    @joejangala 3 роки тому

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

  • @abdulmohab8125
    @abdulmohab8125 3 роки тому +1

    Thank u so much sir g

  • @haldharpatel3915
    @haldharpatel3915 3 роки тому

    Thanks it is really helpful 👍

  • @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 UA-cam Channel called DJ Oamen, here is the link below: ua-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++:
      ua-cam.com/video/5XIgvfxwPKU/v-deo.html
      Tic Tac Toe in Visual C++
      ua-cam.com/video/hYEEofdVOSY/v-deo.html
      Piano in Visual C++
      ua-cam.com/video/r2BPLJJelSU/v-deo.html
      Get back to me on the DJ Oamen Channel
      Good Luck

  • @axe1__
    @axe1__ 3 роки тому

    thank you so much

  • @LegendGaming-vq4nq
    @LegendGaming-vq4nq 3 роки тому +2

    it works

  • @MoamenMostafa
    @MoamenMostafa 3 роки тому

    MashaAlllah

  • @LegendGaming-vq4nq
    @LegendGaming-vq4nq 3 роки тому +2

    thank you bro

  • @ishort11
    @ishort11 3 роки тому

    thank you

  • @talha_coding_tutor
    @talha_coding_tutor Рік тому

    how did U do that

    • @PaulOamen
      @PaulOamen  Рік тому

      Carefully watch the video tutorial

  • @tr123ap6
    @tr123ap6 3 роки тому

    very useful sir

  • @gainbrain1338
    @gainbrain1338 3 роки тому

    thanks Man

  • @fICopErPolut
    @fICopErPolut 2 роки тому

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

    • @PaulOamen
      @PaulOamen  2 роки тому

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

  • @dylannay6933
    @dylannay6933 2 роки тому

    how to do it with Mac

  • @tymzi6484
    @tymzi6484 3 роки тому +1

    i dont have clr

    • @PaulOamen
      @PaulOamen  3 роки тому

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

  • @mig7287
    @mig7287 2 роки тому

    👍👍

  • @666Mantios666
    @666Mantios666 2 роки тому

    HOw about % function ?? :D

    • @PaulOamen
      @PaulOamen  2 роки тому

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

  • @RixtronixLAB
    @RixtronixLAB 3 роки тому

    Cool video :)

  • @NR-qc3xe
    @NR-qc3xe 3 роки тому

    thank you