Click here to Skip to main content
15,903,012 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to convert a string to char Pin
vc++_fragrance17-Sep-06 19:59
vc++_fragrance17-Sep-06 19:59 
AnswerRe: How to convert a string to char Pin
Rinu_Raj17-Sep-06 20:04
Rinu_Raj17-Sep-06 20:04 
AnswerRe: How to convert a string to char Pin
Kiran Pinjala17-Sep-06 20:06
Kiran Pinjala17-Sep-06 20:06 
AnswerRe: How to convert a string to char Pin
ashokbngr17-Sep-06 20:11
ashokbngr17-Sep-06 20:11 
AnswerRe: How to convert a string to char Pin
Christian Graus17-Sep-06 20:11
protectorChristian Graus17-Sep-06 20:11 
GeneralRe: How to convert a string to char Pin
Stephen Hewitt17-Sep-06 20:37
Stephen Hewitt17-Sep-06 20:37 
GeneralRe: How to convert a string to char Pin
cpp_prgmer17-Sep-06 21:03
cpp_prgmer17-Sep-06 21:03 
GeneralRe: How to convert a string to char Pin
Stephen Hewitt17-Sep-06 22:24
Stephen Hewitt17-Sep-06 22:24 
Every call to GetBuffer should have a matching call to ReleaseBuffer. GetBuffer and ReleaseBuffer should only be used on code which alters the string. If you just want to inspect use operator LPCTSTR. Using this operator is automatic, ie:
const char *pData = MyCString;


As Christian suggested however, both of these methods should only be use when using a CString with code that knows nothing about CStrings - In general use CString's member functions to manipulate it's contents.

Steve

GeneralRe: How to convert a string to char Pin
cpp_prgmer17-Sep-06 23:04
cpp_prgmer17-Sep-06 23:04 
GeneralRe: How to convert a string to char Pin
Zac Howland18-Sep-06 3:26
Zac Howland18-Sep-06 3:26 
QuestionDoc-View to be called from a dialog based MFC program? Pin
Rajeswari, T.17-Sep-06 19:58
Rajeswari, T.17-Sep-06 19:58 
Questionthreads to save in compound document. Pin
cpp_prgmer17-Sep-06 19:55
cpp_prgmer17-Sep-06 19:55 
AnswerRe: threads to save in compound document. Pin
Stephen Hewitt17-Sep-06 20:55
Stephen Hewitt17-Sep-06 20:55 
GeneralRe: threads to save in compound document. Pin
cpp_prgmer17-Sep-06 20:59
cpp_prgmer17-Sep-06 20:59 
GeneralRe: threads to save in compound document. Pin
Stephen Hewitt17-Sep-06 21:09
Stephen Hewitt17-Sep-06 21:09 
GeneralRe: threads to save in compound document. Pin
cpp_prgmer17-Sep-06 21:13
cpp_prgmer17-Sep-06 21:13 
GeneralRe: threads to save in compound document. Pin
Stephen Hewitt18-Sep-06 14:08
Stephen Hewitt18-Sep-06 14:08 
QuestionHow can i set caption for SDI? Pin
kiranin17-Sep-06 19:48
kiranin17-Sep-06 19:48 
AnswerRe: How can i set caption for SDI? Pin
Hamid_RT17-Sep-06 19:53
Hamid_RT17-Sep-06 19:53 
GeneralRe: How can i set caption for SDI? Pin
Christian Graus17-Sep-06 20:12
protectorChristian Graus17-Sep-06 20:12 
GeneralRe: How can i set caption for SDI? Pin
Hamid_RT17-Sep-06 20:38
Hamid_RT17-Sep-06 20:38 
GeneralRe: How can i set caption for SDI? Pin
kiranin17-Sep-06 20:31
kiranin17-Sep-06 20:31 
GeneralRe: How can i set caption for SDI? Pin
Hamid_RT17-Sep-06 20:40
Hamid_RT17-Sep-06 20:40 
GeneralRe: How can i set caption for SDI? Pin
kiranin17-Sep-06 20:43
kiranin17-Sep-06 20:43 
GeneralRe: How can i set caption for SDI? Pin
Hamid_RT18-Sep-06 9:50
Hamid_RT18-Sep-06 9:50 

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.