Click here to Skip to main content
15,173,985 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWaitForSingleObject and SetEvent Pin
laksh220427-Aug-08 21:36
Memberlaksh220427-Aug-08 21:36 
AnswerRe: WaitForSingleObject and SetEvent Pin
Roger Stoltz27-Aug-08 21:46
MemberRoger Stoltz27-Aug-08 21:46 
QuestionFTP client application Pin
anandi_codeproject27-Aug-08 21:23
Memberanandi_codeproject27-Aug-08 21:23 
AnswerRe: FTP client application Pin
Rathore Amit28-Aug-08 0:09
MemberRathore Amit28-Aug-08 0:09 
AnswerRe: FTP client application Pin
anandi_codeproject28-Aug-08 2:52
Memberanandi_codeproject28-Aug-08 2:52 
GeneralRe: FTP client application Pin
Rathore Amit28-Aug-08 18:24
MemberRathore Amit28-Aug-08 18:24 
AnswerRe: FTP client application Pin
Mark Salsbery28-Aug-08 7:06
MemberMark Salsbery28-Aug-08 7:06 
QuestionCListCtrl LVITEM lvItem problem Pin
Dhiraj kumar Saini27-Aug-08 20:31
MemberDhiraj kumar Saini27-Aug-08 20: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 20:39
MemberNibu babu thomas27-Aug-08 20:39 
AnswerRe: CListCtrl LVITEM lvItem problem Pin
Varghese Paul M27-Aug-08 21:14
MemberVarghese Paul M27-Aug-08 21:14 
GeneralRe: CListCtrl LVITEM lvItem problem Pin
Dhiraj kumar Saini27-Aug-08 21:40
MemberDhiraj kumar Saini27-Aug-08 21:40 
GeneralRe: CListCtrl LVITEM lvItem problem Pin
Nibu babu thomas27-Aug-08 21:48
MemberNibu babu thomas27-Aug-08 21:48 
GeneralRe: CListCtrl LVITEM lvItem problem Pin
Dhiraj kumar Saini27-Aug-08 21:52
MemberDhiraj kumar Saini27-Aug-08 21:52 
QuestionRe: CListCtrl LVITEM lvItem problem Pin
Varghese Paul M27-Aug-08 23:07
MemberVarghese Paul M27-Aug-08 23:07 
AnswerRe: CListCtrl LVITEM lvItem problem Pin
Dhiraj kumar Saini27-Aug-08 23:47
MemberDhiraj kumar Saini27-Aug-08 23:47 
QuestionRe: CListCtrl LVITEM lvItem problem Pin
David Crow28-Aug-08 4:52
MemberDavid Crow28-Aug-08 4:52 
Questionshortkeys inside propertypage Pin
hari_honey27-Aug-08 20:27
Memberhari_honey27-Aug-08 20:27 
QuestionWhat is the difference between GetMessage ,PeekMessage and PostMessage? Pin
nisha0000027-Aug-08 19:53
Membernisha0000027-Aug-08 19:53 
AnswerRe: What is the difference between GetMessage ,PeekMessage and PostMessage? Pin
Manish K. Agarwal27-Aug-08 20:16
MemberManish K. Agarwal27-Aug-08 20:16 
AnswerYou forgot one Pin
Cedric Moonen27-Aug-08 21:33
MemberCedric Moonen27-Aug-08 21:33 
QuestionRe: What is the difference between GetMessage ,PeekMessage and PostMessage? Pin
CPallini27-Aug-08 23:58
mveCPallini27-Aug-08 23:58 
QuestionHelp with launching modal-less dialog error Pin
limesp27-Aug-08 19:21
Memberlimesp27-Aug-08 19:21 
AnswerRe: Help with launching modal-less dialog error Pin
Nibu babu thomas27-Aug-08 19:34
MemberNibu babu thomas27-Aug-08 19:34 
GeneralRe: Help with launching modal-less dialog error Pin
Naveen27-Aug-08 19:45
MemberNaveen27-Aug-08 19:45 
GeneralRe: Help with launching modal-less dialog error Pin
Nibu babu thomas27-Aug-08 19:51
MemberNibu babu thomas27-Aug-08 19: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.