Click here to Skip to main content
15,040,212 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

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