Click here to Skip to main content
16,005,038 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWaitForSingleObject and SetEvent Pin
laksh220427-Aug-08 20:36
laksh220427-Aug-08 20:36 
AnswerRe: WaitForSingleObject and SetEvent Pin
Roger Stoltz27-Aug-08 20:46
Roger Stoltz27-Aug-08 20:46 
QuestionFTP client application Pin
anandi_codeproject27-Aug-08 20:23
anandi_codeproject27-Aug-08 20:23 
AnswerRe: FTP client application Pin
Rathore Amit27-Aug-08 23:09
Rathore Amit27-Aug-08 23:09 
AnswerRe: FTP client application Pin
anandi_codeproject28-Aug-08 1:52
anandi_codeproject28-Aug-08 1:52 
GeneralRe: FTP client application Pin
Rathore Amit28-Aug-08 17:24
Rathore Amit28-Aug-08 17:24 
AnswerRe: FTP client application Pin
Mark Salsbery28-Aug-08 6:06
Mark Salsbery28-Aug-08 6:06 
QuestionCListCtrl LVITEM lvItem problem Pin
Dhiraj kumar Saini27-Aug-08 19:31
Dhiraj kumar Saini27-Aug-08 19:31 
Hi,

Actually i am getting several url 's from the server and i want to the url in my window application(Using MFC) in a CListCtrl.
But it is giving runtime error in InsertItem() ans SetItemText() function although complied with 0 erroes.
Can anyone tell me what is the problem.

My code is as follows:

void CMainDlg::UpdateFootPrintsForVisitor(int n, CString strResponseFootPrints)
{

if(n>-1)
{
if(strResponseFootPrints.IsEmpty())
return;
CStringArray* ptrstrArray = CParser::Parse(strResponseFootPrints,g_strDelimFLD);

for(int i=0; i<ptrstrarray->GetSize(); i++)
{
LVITEM lvItem;
lvItem.mask = LVIF_TEXT;
lvItem.iItem = i;
lvItem.iSubItem = 0;
lvItem.pszText = _T("Sandra C. Anschwitz");

int nItem=m_lstGetFootPrints.InsertItem(&lvItem);//error line during run
m_lstGetFootPrints.SetItemText(nItem,0,(LPCTSTR)(ptrstrArray->GetAt(i)));
}
}

Thanks in Advance
Dhiraj
AnswerRe: CListCtrl LVITEM lvItem problem Pin
Nibu babu thomas27-Aug-08 19:39
Nibu babu thomas27-Aug-08 19:39 
AnswerRe: CListCtrl LVITEM lvItem problem Pin
Varghese Paul M27-Aug-08 20:14
Varghese Paul M27-Aug-08 20:14 
GeneralRe: CListCtrl LVITEM lvItem problem Pin
Dhiraj kumar Saini27-Aug-08 20:40
Dhiraj kumar Saini27-Aug-08 20:40 
GeneralRe: CListCtrl LVITEM lvItem problem Pin
Nibu babu thomas27-Aug-08 20:48
Nibu babu thomas27-Aug-08 20:48 
GeneralRe: CListCtrl LVITEM lvItem problem Pin
Dhiraj kumar Saini27-Aug-08 20:52
Dhiraj kumar Saini27-Aug-08 20:52 
QuestionRe: CListCtrl LVITEM lvItem problem Pin
Varghese Paul M27-Aug-08 22:07
Varghese Paul M27-Aug-08 22:07 
AnswerRe: CListCtrl LVITEM lvItem problem Pin
Dhiraj kumar Saini27-Aug-08 22:47
Dhiraj kumar Saini27-Aug-08 22:47 
QuestionRe: CListCtrl LVITEM lvItem problem Pin
David Crow28-Aug-08 3:52
David Crow28-Aug-08 3:52 
Questionshortkeys inside propertypage Pin
hari_honey27-Aug-08 19:27
hari_honey27-Aug-08 19:27 
QuestionWhat is the difference between GetMessage ,PeekMessage and PostMessage? Pin
nisha0000027-Aug-08 18:53
nisha0000027-Aug-08 18:53 
AnswerRe: What is the difference between GetMessage ,PeekMessage and PostMessage? Pin
Manish K. Agarwal27-Aug-08 19:16
Manish K. Agarwal27-Aug-08 19:16 
AnswerYou forgot one Pin
Cedric Moonen27-Aug-08 20:33
Cedric Moonen27-Aug-08 20:33 
QuestionRe: What is the difference between GetMessage ,PeekMessage and PostMessage? Pin
CPallini27-Aug-08 22:58
mveCPallini27-Aug-08 22:58 
QuestionHelp with launching modal-less dialog error Pin
limesp27-Aug-08 18:21
limesp27-Aug-08 18:21 
AnswerRe: Help with launching modal-less dialog error Pin
Nibu babu thomas27-Aug-08 18:34
Nibu babu thomas27-Aug-08 18:34 
GeneralRe: Help with launching modal-less dialog error Pin
Naveen27-Aug-08 18:45
Naveen27-Aug-08 18:45 
GeneralRe: Help with launching modal-less dialog error Pin
Nibu babu thomas27-Aug-08 18:51
Nibu babu thomas27-Aug-08 18:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.