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

C / C++ / MFC

 
GeneralRe: quick watching vector variable Pin
krmed15-Sep-06 4:33
krmed15-Sep-06 4:33 
GeneralRe: quick watching vector variable Pin
Nibu babu thomas17-Sep-06 17:39
Nibu babu thomas17-Sep-06 17:39 
QuestionUNICODE, MULTIBYTE problem Pin
_anil_14-Sep-06 23:44
_anil_14-Sep-06 23:44 
AnswerRe: UNICODE, MULTIBYTE problem Pin
Rinu_Raj15-Sep-06 0:05
Rinu_Raj15-Sep-06 0:05 
GeneralRe: UNICODE, MULTIBYTE problem Pin
_anil_17-Sep-06 18:07
_anil_17-Sep-06 18:07 
QuestionHow to modify LPCTSTR contet? Pin
bosfan14-Sep-06 23:16
bosfan14-Sep-06 23:16 
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 
Nibu babu thomas wrote:
CString csStringContent = "This is an String"; // modify to "This is String" or replace a part of themLPCTSTR lpsz = csStringContent;// modify lpsz?


Generally, if you want to modify the LPCTSTR, then you are making something wrong.

You can:
1. csStringContent[0] = 'a';
2. use various member function of CString
3. use CString only when necessary:

TCHAR str[100] = "This is a string";<br />
_tcscpy(str[2], "aaa";<br />
CString cstr = str;


4. use CString::GetBuffer() as already described;

Playing with the LPCTSTR ... no way.
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 
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 

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.