Skip to content

Select Nick On Paltalk Listview Code FInally :)

Viewing 4 posts - 91 through 94 (of 94 total)
  • Author
    Posts
  • #188648
    method
    Member

    @nanomachine007 wrote:

    click on green icon rectangular just left word debug you can see the result of that code. I use vs2005 but professional version i dont know if there are different between them 🙄

    btw if you want link your variable to your control you have to check to function DataExchange something like that.
    Edit control your variable for that type is an instance of CEdit or CString. u just check help online about that. I never ask help when i’am learning mfc or other just read more documentation.
    button control your variable must be an instance of CButton

    and after go to procedure dataexchange and link them for example like this

    DDX_control(pDX,IDC_EDIT1,yourvariableforEditControlHere);

    then after you can interact with your control by your variable with procedure UpdateData

    in our case I linked the Edit control with an instance of CString.

    i tried u code and i got this error on runngit :

    #188647

    no no no you never need to rename edit control normally the id given by editor itself.

    and in mfc is not same like vb like mytextboxaddtoform.text not that.

    you can modify Edit control and update with linking variable to that control and use UpdateData to update content of variable linking to that control or get content of that control u have linked to your variable.

    UpdateData that function exist in mfc with parameter true or false. man i do not want to teach you how to learn mfc. I just can help some snippet code, if you want to know mfc i think you must read more.

    btw do my demo work for u ❓

    #188646
    method
    Member

    @nanomachine007 wrote:

    no no no you never need to rename edit control normally the id given by editor itself.

    and in mfc is not same like vb like mytextboxaddtoform.text not that.

    you can modify Edit control and update with linking variable to that control and use UpdateData to update content of variable linking to that control or get content of that control u have linked to your variable.

    UpdateData that function exist in mfc with parameter true or false. man i do not want to teach you how to learn mfc. I just can help some snippet code, if you want to know mfc i think you must read more.

    btw do my demo work for u ❓

    man your code is working but only it does not take the value of text box!!
    I am almost done but this textbox is giving problem!!. Any thing i type it goes highlight the first item in listview!! as u know i do this in visual c++ 6 . i placed new editbox without changing it to m_nick and same problem again!!

    Your code for visual studio 2005 does not run and i get error as i shown u up in the pic!! I want to make both of these to work !!

    #188645

    awch i have no idea what is the error shown in pic. good luck man, i dont know what to tell you how to create a textbox with your editor maybe google can help you

Viewing 4 posts - 91 through 94 (of 94 total)
  • You must be logged in to reply to this topic.