Solved

Visual C++ Problem!!!!

Posted on 1998-08-02
4
180 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 50 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

726 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