Click here to Skip to main content
15,893,337 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWhat is the difference between following declarations ? Pin
PrafullaVedante30-Oct-12 22:52
PrafullaVedante30-Oct-12 22:52 
AnswerRe: What is the difference between following declarations ? Pin
Richard MacCutchan30-Oct-12 23:07
mveRichard MacCutchan30-Oct-12 23:07 
AnswerRe: What is the difference between following declarations ? Pin
Orjan Westin30-Oct-12 23:37
professionalOrjan Westin30-Oct-12 23:37 
GeneralRe: What is the difference between following declarations ? Pin
Stefan_Lang7-Nov-12 2:49
Stefan_Lang7-Nov-12 2:49 
GeneralRe: What is the difference between following declarations ? Pin
Orjan Westin8-Nov-12 9:07
professionalOrjan Westin8-Nov-12 9:07 
QuestionWrite a tiff file to disk Pin
Marcio Kugler Rodrigues30-Oct-12 7:50
Marcio Kugler Rodrigues30-Oct-12 7:50 
AnswerRe: Write a tiff file to disk Pin
Richard MacCutchan30-Oct-12 8:37
mveRichard MacCutchan30-Oct-12 8:37 
AnswerRe: Write a tiff file to disk Pin
CPallini30-Oct-12 23:03
mveCPallini30-Oct-12 23:03 
QuestionGUI enabled for service under windows 2008 Pin
es196830-Oct-12 3:58
es196830-Oct-12 3:58 
AnswerRe: GUI enabled for service under windows 2008 Pin
Richard MacCutchan30-Oct-12 10:38
mveRichard MacCutchan30-Oct-12 10:38 
QuestionOnPaint not executed Pin
_Flaviu29-Oct-12 22:20
_Flaviu29-Oct-12 22:20 
AnswerRe: OnPaint not executed Pin
Richard MacCutchan29-Oct-12 22:57
mveRichard MacCutchan29-Oct-12 22:57 
GeneralRe: OnPaint not executed Pin
_Flaviu29-Oct-12 23:21
_Flaviu29-Oct-12 23:21 
QuestionRemoving repeated path Pin
sarfaraznawaz29-Oct-12 19:32
sarfaraznawaz29-Oct-12 19:32 
AnswerRe: Removing repeated path Pin
_Flaviu29-Oct-12 22:12
_Flaviu29-Oct-12 22:12 
AnswerRe: Removing repeated path Pin
Richard MacCutchan29-Oct-12 22:59
mveRichard MacCutchan29-Oct-12 22:59 
GeneralRe: Removing repeated path Pin
sarfaraznawaz29-Oct-12 23:29
sarfaraznawaz29-Oct-12 23:29 
sorry for not explaining
m_listCrl = DEBUG_NEW CListCtrl;
if(!m_listCrl->Create(WS_CHILD|WS_VISIBLE|LVS_REPORT|LVS_AUTOARRANGE,/*CRect(65, 100, 960, 448)*/CRect (60, 105, 954, 435),this,IDC_LIST_CTRL))
{
TRACE ("\nDBG:\tFailed to create window object for List ctrl at line %u in %s.", __LINE__, __FILE__);
return -1;
}

GetPrivateProfileString (_T ("Remo Eraser"), _T ("IDS_CLOUMN1"), NULL, (LPWSTR)szNewText, sizeof(szNewText), m_szPath);

m_listCrl->GetHeaderCtrl();
m_listCrl->InsertColumn(1,(LPWSTR)szNewText,LVCFMT_LEFT,75+75+25+50+25+25+25,-1);

GetPrivateProfileString (_T ("Remo Eraser"), _T ("IDS_CLOUMN2"), NULL, (LPWSTR)szNewText, sizeof(szNewText), m_szPath);
m_listCrl->InsertColumn(2,(LPWSTR)szNewText,LVCFMT_CENTER,75+75+25+50+25+25+25+10,-1);

GetPrivateProfileString (_T ("Remo Eraser"), _T ("IDS_CLOUMN3"), NULL, (LPWSTR)szNewText, sizeof(szNewText), m_szPath);
m_listCrl->InsertColumn(3,(LPWSTR)szNewText,LVCFMT_CENTER,75+75+25+50+25+25+10-1);
m_listCrl->InsertItem(0,File_Name,NULL);
m_listCrl->SetItemText(0,1,m_Filepath);
m_listCrl->SetItemText(0,2,_T("10KB"));
<pre lang="c++">


here is the code
am adding the file name and file path in an Clist ctl.
am dont want to add the same file name or path in an list .
i tried with FindItem // info.flags =/* LVFI_PARTIAL|LVFI_STRING*/LVFI_PARAM;
// info.psz = m_Filepath;

// Delete all of the items that begin with the string.
// index = m_listCrl->FindItem(&info);
// while ((index = m_listCrl->FindItem(&info))!= -1)
// {
// MessageBox(_T("File Already exists "),_T("Inforamtion"),MB_ICONINFORMATION);
// m_listCrl->DeleteItem(index);
//
// }
<


GeneralRe: Removing repeated path Pin
Richard MacCutchan30-Oct-12 0:40
mveRichard MacCutchan30-Oct-12 0:40 
QuestionRe: Removing repeated path Pin
David Crow30-Oct-12 3:18
David Crow30-Oct-12 3:18 
QuestionWIC/C++: People Tagging: Unable to set the People Tagging metadata Pin
Morpheus2matrix29-Oct-12 9:27
Morpheus2matrix29-Oct-12 9:27 
AnswerRe: WIC/C++: People Tagging: Unable to set the People Tagging metadata Pin
enhzflep29-Oct-12 15:27
enhzflep29-Oct-12 15:27 
GeneralRe: WIC/C++: People Tagging: Unable to set the People Tagging metadata Pin
Morpheus2matrix29-Oct-12 22:06
Morpheus2matrix29-Oct-12 22:06 
GeneralRe: WIC/C++: People Tagging: Unable to set the People Tagging metadata Pin
enhzflep30-Oct-12 9:16
enhzflep30-Oct-12 9:16 
GeneralRe: WIC/C++: People Tagging: Unable to set the People Tagging metadata Pin
Morpheus2matrix30-Oct-12 21:56
Morpheus2matrix30-Oct-12 21:56 
Questionfputc() writes an extra character Pin
Member 923664029-Oct-12 5:25
Member 923664029-Oct-12 5:25 

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.