Click to See Complete Forum and Search --> : Help GetDlgItemText


poulin jean Michel
April 1st, 1999, 01:43 AM
Can you help me I want to use a CEDIT and I want recover a value With

GetDlgItemText. for a letal money converter Franc/Euro.


I use the syntax:


char [buf]

memset(&buf,0,sizeof(buf));

GetDlgItemText(IDC_EDIT,buf,sizeof(buf));


how recovered the value of buf for multiplied it or divided it.

ie: (value of buf * 5.565)


My warm greetings.

Peter Lundqvist
April 1st, 1999, 02:17 AM
Hi. Try this!

Use your buf if you can. GetLine() takes a LPTSTR as param2!


CEdit* pEdit = (CEdit*)GetDlgItem(IDC_EDIT);

pEdit->GetLine( 0, buf );


Hope this helps.

/Peter Lundqvist