Click here to Skip to main content
15,900,325 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to modify LPCTSTR contet? Pin
Nibu babu thomas14-Sep-06 23:18
Nibu babu thomas14-Sep-06 23:18 
GeneralRe: How to modify LPCTSTR contet? Pin
Andrei Muraru15-Sep-06 1:09
Andrei Muraru15-Sep-06 1:09 
GeneralRe: How to modify LPCTSTR contet? Pin
Stephen Hewitt15-Sep-06 1:24
Stephen Hewitt15-Sep-06 1:24 
GeneralRe: How to modify LPCTSTR contet? Pin
Stephen Hewitt15-Sep-06 1:27
Stephen Hewitt15-Sep-06 1:27 
GeneralRe: How to modify LPCTSTR contet? Pin
Nibu babu thomas15-Sep-06 1:42
Nibu babu thomas15-Sep-06 1:42 
GeneralRe: How to modify LPCTSTR contet? Pin
bosfan15-Sep-06 3:04
bosfan15-Sep-06 3:04 
GeneralRe: How to modify LPCTSTR contet? Pin
Stephen Hewitt16-Sep-06 1:28
Stephen Hewitt16-Sep-06 1:28 
AnswerRe: How to modify LPCTSTR content? Pin
bosfan15-Sep-06 2:04
bosfan15-Sep-06 2:04 
Hello,
i dont need to delete some chars from the LPCTSTR, it is ok when i can change them,
my solution is this:
<code>
LPCTSTR lpsz = csContent.GetBuffer();
LPSTR lpstr = (LPSTR) lpsz;
while(*lpstr)
{
// now change..
  if(something)
  {
    _strnset(lpstr, ' ', 1); // replace current character wit an empty char
  }
}
/*
on the finish in the lpsz are all characters replaced what i dont need!
but i dont know where is the risk on my solution???
*/
</code>


regards
break;
GeneralRe: How to modify LPCTSTR content? Pin
Zac Howland15-Sep-06 3:51
Zac Howland15-Sep-06 3:51 
GeneralRe: How to modify LPCTSTR content? Pin
bosfan15-Sep-06 6:54
bosfan15-Sep-06 6:54 
GeneralRe: How to modify LPCTSTR content? Pin
Zac Howland15-Sep-06 9:08
Zac Howland15-Sep-06 9:08 
QuestionDisplaying continous values Pin
Pratheep Kenny14-Sep-06 22:56
Pratheep Kenny14-Sep-06 22:56 
AnswerRe: Displaying continous values Pin
Rinu_Raj14-Sep-06 23:01
Rinu_Raj14-Sep-06 23:01 
QuestionProblem with fonts in DC ? Pin
Vinod Sankaranarayanan14-Sep-06 22:49
Vinod Sankaranarayanan14-Sep-06 22:49 
AnswerRe: Problem with fonts in DC ? Pin
kk.tvm14-Sep-06 22:52
kk.tvm14-Sep-06 22:52 
AnswerRe: Problem with fonts in DC ? Pin
Steve S14-Sep-06 22:52
Steve S14-Sep-06 22:52 
AnswerRe: Problem with fonts in DC ? Pin
Hamid_RT15-Sep-06 7:26
Hamid_RT15-Sep-06 7:26 
QuestionLinking Error when use Class Template in VC6 [modified] Pin
Andy Rama14-Sep-06 20:42
Andy Rama14-Sep-06 20:42 
AnswerRe: Linking Error when use Class Template in VC6 [modified] Pin
Mr.Brainley14-Sep-06 21:48
Mr.Brainley14-Sep-06 21:48 
AnswerRe: Linking Error when use Class Template in VC6 Pin
Nibu babu thomas14-Sep-06 21:56
Nibu babu thomas14-Sep-06 21:56 
GeneralRe: Linking Error when use Class Template in VC6 Pin
Andy Rama14-Sep-06 22:09
Andy Rama14-Sep-06 22:09 
GeneralRe: Linking Error when use Class Template in VC6 Pin
Nibu babu thomas14-Sep-06 22:19
Nibu babu thomas14-Sep-06 22:19 
GeneralRe: Linking Error when use Class Template in VC6 Pin
Andy Rama14-Sep-06 22:44
Andy Rama14-Sep-06 22:44 
GeneralRe: Linking Error when use Class Template in VC6 Pin
Nibu babu thomas14-Sep-06 22:46
Nibu babu thomas14-Sep-06 22:46 
QuestionHow to dynamically change the toolbar tip in MFC? Pin
ziyoo14-Sep-06 20:41
ziyoo14-Sep-06 20:41 

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.