Jump to content
  • Advertisement
Sign in to follow this  
powerskill

C++ Console to API

This topic is 4293 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Advertisement
I read that. :( Now that you post that I feel stupid, like if the solution is right there and I can't see it.
To add on this, its not homework. So please anyone help me out.

Share this post


Link to post
Share on other sites
Ok. What I would do is create a dialog based application with single line edit box inputs for

"Annual Contribution: ";
"Annual Yield (percent-enter as a whole number): ";
"Current Age: ";
"Retirement Age: ";
"Inflation (percent-enter as a whole number): ";

and three more single line edit box outputs for

"Total Future Value: $"
"Total Present Value: $"
"Total Interest Earned: $"

I'd probaby have a button for "clear" and another for "calculate" that I would connect to the application through WM_COMMAND. Clear would empty the inputs and outputs. Calculate would take the values from the inputs, which would be strings so they would have to be converted to integers first (or reals as the case may be), then perform the calculations on those values, then convert those values back into strings and output them to the outputs.

I might add a third button for shutting down the app too.

Share this post


Link to post
Share on other sites
Well the win32 API isn't the prettiest thing to learn if you're just starting out. One thing you may want to look into is switching over to c# it'll be much easier to create a windows based version of your program.

If you insist on using c++ with win32 I would recommend:

http://www.functionx.com/win32/
http://www.catch22.net/tuts/

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!