CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: maxer

Search: Search took 0.02 seconds.

  1. Re: String passing between functions in VC++ SDI application

    During the first call of Display()

    int nItem = ctlRightView.GetItemCount();

    this one returns 0


    int index = ctlRightView.InsertItem(nItem, league);
    this also return 0
    Output is
  2. Re: String passing between functions in VC++ SDI application

    this is not working Mr.Victor

    void CRightView::Display(const CAtlString league)
    {
    CListCtrl &ctlRightView = this->GetListCtrl();
    ResetLeagues();

    ctlRightView.InsertColumn(0, ...
  3. Re: String passing between functions in VC++ SDI application

    yeah i am getting your point but the thing is the first text it is getting displayed in index 0
    nItem = ctlRightView.InsertItem(0, league);
    and while the second text is coming how do i increment...
  4. Re: String passing between functions in VC++ SDI application

    Victor, thats where im stuck i dont know to proceed further pls help me. like rather than overwriting the former text i need to move the former text to second row first column and new text to first...
  5. Re: String passing between functions in VC++ SDI application

    2Kuad thanks for ur reply ... the resToken in the displaytext() i forgot to remove it let it b unused. And i hav stopped calling InsertItem function every time ratrher i have put that piece of code...
  6. Re: String passing between functions in VC++ SDI application

    Let me explain you. In the sendtext() i open a text file which consists of some data with delimiters like man-woman so after opening i tokenize it and the tokenized output is resToken which is sent...
  7. Re: String passing between functions in VC++ SDI application

    Hi! this is the complete code which i hav done untill now


    Void sendtext()
    {
    CTreeCtrl& trCtrl = GetTreeCtrl();
    HTREEITEM hItem,hsc;
    CExerciseDoc *pDoc = GetDocument();

    CString...
  8. Re: String passing between functions in VC++ SDI application

    Thanks for ur reply :) ...
    pView is the listview pointer used for sending the data from treeview to list view.
    Nope display text is not a global function. It is a local function where we display...
  9. String passing between functions in VC++ SDI application

    I am doing an project in SDI. I have two functions name sendtext(CString str) and displaytext(CString inr) both in different class. I have a pointer name pView to send the string str to function...
Results 1 to 9 of 9





Click Here to Expand Forum to Full Width

Featured