Click here to Skip to main content
15,913,467 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
cpp_prgmer wrote:
Does one have to always call ReleaseBuffer()


Yes. A call to GetBuffer requires a call to ReleaseBuffer. Failing to do so results in a memory leak.

cpp_prgmer wrote:
i mean if he is just calling GetBuffer() just to convert it to form easy for display or copy etc??


There is no need to call GetBuffer for thos purposes. CString has an (LPCTSTR) operator to convert to const TCHAR* implicitly, so in non-UNICODE builds, that operator returns a const char*.



If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week

Zac

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 
Questionrenaming and deleting the folder Pin
radhika2817-Sep-06 19:06
radhika2817-Sep-06 19:06 
AnswerRe: renaming and deleting the folder Pin
_AnsHUMAN_ 17-Sep-06 19:11
_AnsHUMAN_ 17-Sep-06 19:11 

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.