CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9
  1. #1
    Join Date
    Apr 2010
    Posts
    172

    Unhappy Adding and subtracting in Win32 API

    Hello could you please point out to me on how to do adding operations in Win32 API i can get buttons to come up and appear in static label e.g. i press 0 and it appears but if press another button it dissapears out of the static lable plus i want to know how to add numbers up in win32 API

    please help it is very frustrating

  2. #2
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,244

    Re: Adding and subtracting in Win32 API

    What do you mean with "Adding and subtracting in Win32 API" ?
    Please, a little bit more clear.
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

  3. #3
    Join Date
    Apr 2008
    Posts
    214

    Re: Adding and subtracting in Win32 API

    Adding and Subtracting in WinApi is pretty much the same for c++ console except with buttons

    Code:
    http://www.cplusplus.com/doc/tutorial/variables/

  4. #4
    Join Date
    Apr 2010
    Posts
    172

    Unhappy Re: Adding and subtracting in Win32 API

    okay i will be more clearer how do you make a calculator in Win32 API

  5. #5
    Join Date
    Apr 1999
    Posts
    27,449

    Re: Adding and subtracting in Win32 API

    Quote Originally Posted by gaar321 View Post
    okay i will be more clearer how do you make a calculator in Win32 API
    That is not more clearer. That's like asking "how do you build a house". Where would you start explaining how to build a house?

    Regards,

    Paul McKenzie

  6. #6
    Join Date
    Apr 2010
    Posts
    172

    Red face Re: Adding and subtracting in Win32 API

    fairly easy tbh you even the surface of the ground out they you lay your base out.

    what i mean is i can get the buttons to appear and interact with edit box e.g. press button 0 then 0 appears in edit box but what i can not get it to do is that i want it to align left then when i click + i want it make to make the text dissaper then when i add another number the. you then click the = and it give you your answer

  7. #7
    Join Date
    Apr 1999
    Posts
    27,449

    Re: Adding and subtracting in Win32 API

    Quote Originally Posted by gaar321 View Post
    fairly easy tbh you even the surface of the ground out they you lay your base out.
    What is a surface? What is a base? You didn't explain what these are. See what I mean? Your question is so vague, where do you start?

    We have no idea what you're trying to do, what your code looks like, etc.. The question itself doesn't make sense -- you add or subtract numbers by taking the two numbers and ... adding or subtracting them. What this has to do with the Win32 API, that's something you have to tell us in greater detail.

    Regards,

    Paul McKenzie

  8. #8
    Join Date
    Apr 2010
    Posts
    172

    Arrow Re: Adding and subtracting in Win32 API

    okay delete this thread because i open a new one

  9. #9
    Join Date
    Aug 2010
    Posts
    51

    Smile Re: Adding and subtracting in Win32 API

    hi,

    I am i confused and pl explained it.
    i will be more clearer how do you make a calculator in Win32 API

    thanks for message

    regards,
    phe9oxis,
    http://www.guidebuddha.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured