|
-
April 1st, 1999, 02:43 AM
#1
Help GetDlgItemText
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.
-
April 1st, 1999, 03:17 AM
#2
Re: Help GetDlgItemText
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|