CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Posts
    2

    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.





  2. #2
    Join Date
    Apr 1999
    Posts
    5

    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
  •  





Click Here to Expand Forum to Full Width

Featured