Hey i am nt working,i am doing my MCA project work.
parichaybp
Posts
-
Adding Items ti List control -
Adding Items ti List controlHi WhiteSky, CListCtrl *m_OUTPUT; CString strText = "hello"; m_OUTPUT->SetItemText(1, 1, strText); is the above statment correct ?? i tryed but its not giveing any output.
-
Adding Items ti List controlHi Maxwell Chen, Hope U still Remember me..:) i just tried with this statment CString strText = "hello"; m_OUTPUT->SetItemText(1, 1, strText); is this correct ???
-
Adding Items ti List controlHi, Thanks for the reply..I just checked the MSDN Ex.. --------------------- Example MSDN // The pointer to my list view control. extern CListCtrl* pmyListCtrl; CString strText; int nColumnCount = pmyListCtrl->GetHeaderCtrl()->GetItemCount(); // Insert 10 items in the list view control. for (int i=0;i < 10;i++) { strText.Format(TEXT("item %d"), i); // Insert the item, select every other item. pmyListCtrl->InsertItem( LVIF_TEXT|LVIF_STATE, i, strText, (i%2)==0 ? LVIS_SELECTED : 0, LVIS_SELECTED, 0, 0); // Initialize the text of the subitems. for (int j=1;j < nColumnCount;j++) { strText.Format(TEXT("sub-item %d %d"), i, j); pmyListCtrl->SetItemText(i, j, strText); } } ---------------------------------------- extern CListCtrl* pmyListCtrl; can u tell me what the use of the above statment ??
-
Adding Items ti List controlHi, its List Control. I am from Bangalore.
-
Adding Items ti List controlHi, Thanks for the reply, its CListCtrl,
-
Adding Items ti List controlHi , From the below code it displays the file name on the output screen,can anyone please tell how to add them to List box ?? I have list box IDC_OUTPUT CListCtrl m_output. ----------------------------------- if (e != NULL) { readFiles (e->left); fp = fopen (e->filename, "r"); fnum++; if ((s = (char*)strrchr(e->filename, '/')) == NULL) cout << e->filename; //Prints file name else cout << e->filename; //Prints File name insert (fnum, e->filename); if (fp) { wds = getWord (fp,fnum); } cout << " (" << wds << " words)" << endl; //Prints number of words fclose (fp); ------------------------------------ Regards, Parichay.
-
Adding Documents to F1hi, Thank for the msg, can u please expand and tell me what i have to do. i am new to VC++.
-
Adding Documents to F1Hi, Thanks for the msg, Can u please expand and tell what i have to do.. i am new to VC++.
-
Adding Documents to F1Hi, I have newly created MFC 32 Application, can any one please tell how to add Help [F1] documents and images to project. Regards, Parichay.
-
Working with Help [ F1 ]Hi, I want know how to add contents to Help Document . Can anyone please tell me how to add pictures and documentation notes to project Help File [F1] under different topics. Regards, Parichay B.P
-
About Final ProjectHi, Try to do the project in .Net or J2EE both are very good. u can also do in VB using RDBMS package.
-
Passing values from one Dialog to Another.can u please tell what is the error ??? is this below code correct??? -> error CCreateDlg *CCreateDlg = (CCreateDlg*)GetParent(); CString str = CCreateDlg -> fname; m_UPDATE_FILE_NAME_COMBO.AddString(str); --------------------Configuration: DesktopSearch - Win32 Debug-------------------- Compiling... UpdateDlg.cpp D:\Parichay\DS with Help\DesktopSearch\UpdateDlg.cpp(146) : error C2059: syntax error : ')' Error executing cl.exe. DesktopSearch.exe - 1 error(s), 0 warning(s)
-
Passing values from one Dialog to Another.can u please tell what is the error ??? -> error CCreateDlg *CCreateDlg = (CCreateDlg*)GetParent(); CString str = CCreateDlg -> fname; m_UPDATE_FILE_NAME_COMBO.AddString(str); --------------------Configuration: DesktopSearch - Win32 Debug-------------------- Compiling... UpdateDlg.cpp D:\Parichay\DS with Help\DesktopSearch\UpdateDlg.cpp(146) : error C2059: syntax error : ')' Error executing cl.exe. DesktopSearch.exe - 1 error(s), 0 warning(s)
-
Passing values from one Dialog to Another.Hi, I am bit confused now. In my project the main Dialog is CDesktopSearchDlg after that i have CreateDlg & UpdateDlg. //Uday firstDialog.h" in the second Dialog. // i want to which is first dialog and which is 2nd dialog. Is this code below correct ?? BOOL CUpdateDlg::OnInitDialog() { CDialog::OnInitDialog(); CreateDlg *CDesktopSearchDlg = (CreateDlg *)GetParent(); CString str = CDesktopSearchDlg->fname; m_UPDATE_FILE_NAME_COMBO.AddString(str); }
-
Passing values from one Dialog to Another.Hi, Thanks for the reply.. I just store the file name as below void CCreateDlg::OnOk() { CString fname; fname=m_FILE_NAME; -- --- --- } Now in the UpdateDlg In the BOOL CUpdateDlg::OnInitDialog() { } ---- I want to know what is *mpmain ??? is this MainDialog window ???
-
Passing values from one Dialog to Another.Hi,, In my Project I have main Dialog DesktopSearchDlg CreateDlg & UpdateDlg. In CreateDlg I am accepting File Name on Ok I have to add the file name to UpdateDlg in a combo box Can any one please tell me how to do this. CreateDlg UpdateDlg File Name onOK ( ) ComboBox Regards, Parichay.
-
List Control with default textI just create a edit box with m_EDIT member of Type CString also checked multiline and i declared m_EDIT = "*.exp *.ilk *.res *.trg *.tlh *.idb *.pdb *.pch *.opt *.lib "*\Deleted Items\*" *.cab *.mov *.mp3 *"; i am gettling lots of erro that i cant use * etc can u please tell me how to do it? --------------------Configuration: DesktopSearch - Win32 Debug-------------------- Compiling... UpdateDlg.cpp D:\Parichay\DesktopSearch\UpdateDlg.cpp(168) : error C2017: illegal escape sequence D:\Parichay\DesktopSearch\UpdateDlg.cpp(168) : error C2065: 'Deleted' : undeclared identifier D:\Parichay\DesktopSearch\UpdateDlg.cpp(168) : error C2017: illegal escape sequence D:\Parichay\DesktopSearch\UpdateDlg.cpp(168) : error C2296: '*' : illegal, left operand has type 'char [61]' D:\Parichay\DesktopSearch\UpdateDlg.cpp(168) : error C2146: syntax error : missing ';' before identifier 'Items' D:\Parichay\DesktopSearch\UpdateDlg.cpp(168) : error C2065: 'Items' : undeclared identifier D:\Parichay\DesktopSearch\UpdateDlg.cpp(168) : error C2297: '*' : illegal, right operand has type 'char [21]' Error executing cl.exe. DesktopSearch.exe - 7 error(s), 0 warning(s)
-
List Control with default textkeerthikaaa i cant use the Combo Box, i can use Edit box or list control or list Box.
-
List Control with default textHi, Thanks for the reply.. But in the Edit box , how to display the text in multiple line ???