Click here to Skip to main content
15,886,639 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
sarfaraznawaz wrote:
m_listCrl->InsertColumn(1,(LPWSTR)szNewText,LVCFMT_LEFT,75+75+25+50+25+25+25,-1);
Are you seriously doing this in production code or is this just a personal project?

sarfaraznawaz wrote:
m_listCrl->InsertItem(0,File_Name,NULL);
m_listCrl->SetItemText(0,1,m_Filepath);
m_listCrl->SetItemText(0,2,_T("10KB"));
This should be:

int nItem = m_listCrl->InsertItem(0, File_Name);
m_listCrl->SetItemText(nItem, 1, m_Filepath);
m_listCrl->SetItemText(nItem, 2, _T("10KB"));


sarfaraznawaz wrote:

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
You should be using some other data structure that is better suited for searching, or one that doesn't allow duplicates to begin with. Populate the list control from that.

"One man's wage rise is another man's price increase." - Harold Wilson

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous


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 
AnswerRe: fputc() writes an extra character Pin
Member 923664029-Oct-12 6:01
Member 923664029-Oct-12 6:01 
GeneralRe: fputc() writes an extra character Pin
Member 923664029-Oct-12 6:12
Member 923664029-Oct-12 6:12 
GeneralRe: fputc() writes an extra character Pin
Chris Meech29-Oct-12 6:29
Chris Meech29-Oct-12 6:29 
AnswerRe: fputc() writes an extra character Pin
Richard MacCutchan29-Oct-12 6:50
mveRichard MacCutchan29-Oct-12 6:50 
QuestionApplication error 0xc0150002 when run MFC in Window 7 Pin
Andraw11129-Oct-12 4:32
Andraw11129-Oct-12 4:32 
AnswerRe: Application error 0xc0150002 when run MFC in Window 7 Pin
Chris Meech29-Oct-12 6:40
Chris Meech29-Oct-12 6:40 
GeneralRe: Application error 0xc0150002 when run MFC in Window 7 Pin
Andraw11129-Oct-12 6:46
Andraw11129-Oct-12 6:46 
GeneralRe: Application error 0xc0150002 when run MFC in Window 7 Pin
Chris Meech29-Oct-12 6:53
Chris Meech29-Oct-12 6:53 
GeneralRe: Application error 0xc0150002 when run MFC in Window 7 Pin
Rolf Kristensen29-Oct-12 9:12
Rolf Kristensen29-Oct-12 9:12 
GeneralRe: Application error 0xc0150002 when run MFC in Window 7 Pin
Andraw11129-Oct-12 11:32
Andraw11129-Oct-12 11:32 
Questionmicrosoft apifor upnp Pin
Saed Leghaee28-Oct-12 8:49
Saed Leghaee28-Oct-12 8:49 

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.