?
Solved

Visual C++ Problem!!!!

Posted on 1998-08-02
4
Medium Priority
?
188 Views
Last Modified: 2013-12-14
this is my problem
The program should look like this:

(Static Text)              (Edit Box)
First Name:                (Edit Box)
Last Name:                 (Edit Box)
Hours Worked:              (Edit Box)
Pay Rate:                  (Edit Box)
Total Pay:                 (Edit Box)

(Button)Calculate                 (Button)Clear


*** The user will be able to enter the first and last name in separate edit boxes.  The hours worked will also be entered in an edit box.  Make sure your program is setup to accept a decimal. By pressing the button "Calculate", the program will display the total pay. If the "Clear button" is press, it will clear all values.


*** I have difficuties beginning and ending this program, if possible please teach me how to write this program.
THANKZ
(I'm using Microsoft Visual C++ Version 4)

Appreciate,


0
Comment
Question by:Perry001
  • 2
  • 2
4 Comments
 
LVL 1

Expert Comment

by:tulin
ID: 1169231
It's impossible to teach you, how to write programs. You should ask more specific questions. For example:
*** I have difficuties beginning and ending this program
You begin this brogram by creating new project workspace of "Dialog Base" type.
0
 
LVL 1

Expert Comment

by:tulin
ID: 1169232
I mean MFC Wizard App, and then when it ask "SDI/MDI/Dailog based" you choose the last one.
0
 

Accepted Solution

by:
bdwibedy earned 100 total points
ID: 1169233
Hello Perry001,
(Here I assume that u know little bit of VC++)
Although ur problem is little bit not descriptive I am providing a solution for it.
1.First u create a new workspace PAYSLIP and make it Dialog Based application.
2. Go to resources of the application and u will get the main dialog.
3. Add the necessary edit boxes, static text and buttons on ur dialog box from the control menu.
4.On OnInitDialog u initialize the edit boxes value to null.
5.Create member variables for the edit boxes from the class wizard menu.
6.Create functions for Calculate and clear button
7.In the program, after entering the name(last name and first name) and agin after enering pay rate, hours worked etc, make updatedata(true).
8.On CalculateFunction , write the code like, total=payrate*hours worked.
9.On clear function make all edit boxes member variables null and
make updatedata(true)
This is the solution of ur problem.



0
 

Expert Comment

by:bdwibedy
ID: 1169234
No Comments
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question