Click here to Skip to main content
15,919,479 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionBest solution for checking for duplicate values when adding to array or std::vector Pin
NJed27-Nov-07 1:28
NJed27-Nov-07 1:28 
AnswerRe: Best solution for checking for duplicate values when adding to array or std::vector Pin
Nemanja Trifunovic27-Nov-07 1:34
Nemanja Trifunovic27-Nov-07 1:34 
GeneralRe: Best solution for checking for duplicate values when adding to array or std::vector Pin
NJed27-Nov-07 1:39
NJed27-Nov-07 1:39 
AnswerRe: Best solution for checking for duplicate values when adding to array or std::vector Pin
Nelek27-Nov-07 3:04
protectorNelek27-Nov-07 3:04 
QuestionRich edit control Pin
Maynka27-Nov-07 1:19
Maynka27-Nov-07 1:19 
QuestionRe: Rich edit control Pin
David Crow27-Nov-07 3:27
David Crow27-Nov-07 3:27 
AnswerRe: Rich edit control Pin
Hamid_RT29-Nov-07 4:08
Hamid_RT29-Nov-07 4:08 
Questionconvert 'char *' to 'LPCTSTR' Pin
neha.agarwal2727-Nov-07 1:08
neha.agarwal2727-Nov-07 1:08 
Hi all,

I am trying to print size of my file in a list control using this code

int len = finder.GetLength();
char *len_str = new char;
sprintf(len_str,"%d",len);
m_Files.SetItemText(i,1,len_str);


but it gives this error

error C2664: 'CListCtrl::SetItemText' : cannot convert parameter 3 from 'char *' to 'LPCTSTR'

i am using VC-2005

can anybosy tell me how to resolve this problem
AnswerRe: convert 'char *' to 'LPCTSTR' Pin
Cedric Moonen27-Nov-07 1:14
Cedric Moonen27-Nov-07 1:14 
AnswerRe: convert 'char *' to 'LPCTSTR' Pin
Kenan Aksoy27-Nov-07 1:59
Kenan Aksoy27-Nov-07 1:59 
GeneralRe: convert 'char *' to 'LPCTSTR' Pin
Cedric Moonen27-Nov-07 2:14
Cedric Moonen27-Nov-07 2:14 
GeneralRe: convert 'char *' to 'LPCTSTR' Pin
krmed27-Nov-07 2:10
krmed27-Nov-07 2:10 
GeneralRe: convert 'char *' to 'LPCTSTR' Pin
Cedric Moonen27-Nov-07 2:17
Cedric Moonen27-Nov-07 2:17 
GeneralRe: convert 'char *' to 'LPCTSTR' Pin
krmed27-Nov-07 6:58
krmed27-Nov-07 6:58 
GeneralI understand the point, but Pin
CPallini27-Nov-07 3:02
mveCPallini27-Nov-07 3:02 
GeneralRe: I understand the point, but Pin
krmed27-Nov-07 5:47
krmed27-Nov-07 5:47 
GeneralRe: I understand the point, but Pin
CPallini27-Nov-07 6:04
mveCPallini27-Nov-07 6:04 
GeneralRe: I understand the point, but Pin
krmed27-Nov-07 6:56
krmed27-Nov-07 6:56 
AnswerRe: convert 'char *' to 'LPCTSTR' Pin
David Crow27-Nov-07 3:28
David Crow27-Nov-07 3:28 
AnswerRe: convert 'char *' to 'LPCTSTR' Pin
Mark Salsbery27-Nov-07 7:01
Mark Salsbery27-Nov-07 7:01 
AnswerRe: convert 'char *' to 'LPCTSTR' Pin
Hamid_RT29-Nov-07 4:07
Hamid_RT29-Nov-07 4:07 
Questionwrite to a text file Pin
tasumisra27-Nov-07 1:06
tasumisra27-Nov-07 1:06 
AnswerRe: write to a text file Pin
Cedric Moonen27-Nov-07 1:09
Cedric Moonen27-Nov-07 1:09 
GeneralRe: write to a text file Pin
tasumisra27-Nov-07 1:17
tasumisra27-Nov-07 1:17 
AnswerRe: write to a text file Pin
Hamid_RT27-Nov-07 1:10
Hamid_RT27-Nov-07 1:10 

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.