Click here to Skip to main content
16,011,680 members
Home / Discussions / Article Writing
   

Article Writing

 
GeneralRe: I need souce for a 'Library Program'..Book lending/returning etc.. Pin
Christian Graus22-Jul-01 17:29
protectorChristian Graus22-Jul-01 17:29 
GeneralRe: I need souce for a 'Library Program'..Book lending/returning etc.. Pin
Albert van Peppen16-Aug-01 23:25
professionalAlbert van Peppen16-Aug-01 23:25 
GeneralEmbedding MS Word in an application Pin
14-Jul-01 11:40
suss14-Jul-01 11:40 
GeneralSimple but very confusing to me Pin
Kron of LS14-Jul-01 8:35
Kron of LS14-Jul-01 8:35 
GeneralRe: Simple but very confusing to me Pin
14-Jul-01 20:51
suss14-Jul-01 20:51 
GeneralRe: Simple but very confusing to me Pin
Steve T16-Jul-01 9:59
Steve T16-Jul-01 9:59 
Generalthnx for the help, it worked Pin
Kron of LS17-Jul-01 10:03
Kron of LS17-Jul-01 10:03 
GeneralRe: Simple but very confusing to me Pin
fantastic_mr_fox23-Jul-01 2:35
fantastic_mr_fox23-Jul-01 2:35 
1. Create a new project under VC++ using the project wizard and make it a dialog based application.
2. Go into the resource and add the edit controls you need and a button to multiply. Use names such as IDC_EDIT_RATE, IDC_EDIT_HOURS and IDC_EDIT_RESULT for your edit boxes.
3. Go into classwizard and to the 'member variables' add a new variables to the controls. This gives you an easy way to get to the data in the edit controls. So you should create some variables such as m_editRate, m_editHours and m_editResult.
4. Goto the 'message maps' tab again in classwizard. Select the button control from the list onthe left. Select the BN_CLICKED message, and create a function called OnButtonClick();
5. Goto this function in the code and add the following:

----------------------
CString sRate;
m_editRate.GetWindowText( sRate );
CString sHours;
m_editHours.GetWindowText( sHours );
CString sResult;
m_editResult.GetWindowText( sResult );

float fRate = atof( sRate );
float fHours = atof( sHours );
float fResuls = fRate*fHours;

CString sResult;
sResult.Format( "%f", fResult );
m_editResult.SetWindowText( sResult );
----------------------
You'll have to include the right header to use atof() (see the help file).. I can't remember it offhand.

Well I hope that will get you started.

Philip



=)
GeneralHelp Needed For Simple Problem Pin
Rob Carey13-Jul-01 12:54
Rob Carey13-Jul-01 12:54 
GeneralRe: Help Needed For Simple Problem Pin
14-Jul-01 20:52
suss14-Jul-01 20:52 
GeneralRe: Help Needed For Simple Problem Pin
Nikhil Dabas15-Jul-01 8:09
Nikhil Dabas15-Jul-01 8:09 
Generaldeleting IE history folder contents Pin
archana13-Jul-01 3:38
archana13-Jul-01 3:38 
GeneralRe: deleting IE history folder contents Pin
14-Jul-01 20:54
suss14-Jul-01 20:54 
GeneralRe: deleting IE history folder contents Pin
Shaun Kaasten14-Jul-01 21:24
Shaun Kaasten14-Jul-01 21:24 
GeneralRe: deleting IE history folder contents Pin
15-Jul-01 7:23
suss15-Jul-01 7:23 
GeneralRe: deleting IE history folder contents Pin
Shaun Kaasten15-Jul-01 8:28
Shaun Kaasten15-Jul-01 8:28 
GeneralRe: deleting IE history folder contents Pin
archana15-Jul-01 19:07
archana15-Jul-01 19:07 
GeneralRe: deleting IE history folder contents Pin
Shaun Kaasten15-Jul-01 20:17
Shaun Kaasten15-Jul-01 20:17 
GeneralRe: deleting IE history folder contents Pin
archana15-Jul-01 23:35
archana15-Jul-01 23:35 
GeneralRe: deleting IE history folder contents Pin
Shaun Kaasten16-Jul-01 10:34
Shaun Kaasten16-Jul-01 10:34 
GeneralRe: deleting IE history folder contents Pin
archana16-Jul-01 19:40
archana16-Jul-01 19:40 
GeneralRe: deleting IE history folder contents Pin
Shaun Kaasten17-Jul-01 20:44
Shaun Kaasten17-Jul-01 20:44 
GeneralRe: it's working. Pin
archana15-Jul-01 20:58
archana15-Jul-01 20:58 
QuestionHow to get letter under mouse cursor in other programs ? Pin
12-Jul-01 17:47
suss12-Jul-01 17:47 
Questionhas anybody programmed some MAPI? Pin
Erik Yuzwa12-Jul-01 11:16
Erik Yuzwa12-Jul-01 11:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.