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

C / C++ / MFC

 
QuestionHow to catch the editbox's values changed message ? Pin
wangningyu19-Mar-10 17:14
wangningyu19-Mar-10 17:14 
AnswerRe: How to catch the editbox's values changed message ? Pin
«_Superman_»19-Mar-10 18:01
professional«_Superman_»19-Mar-10 18:01 
GeneralRe: How to catch the editbox's values changed message ? Pin
wangningyu19-Mar-10 18:05
wangningyu19-Mar-10 18:05 
QuestionApplicatio crash Pin
cjsc19-Mar-10 10:14
cjsc19-Mar-10 10:14 
AnswerRe: Applicatio crash Pin
loyal ginger19-Mar-10 10:16
loyal ginger19-Mar-10 10:16 
GeneralRe: Applicatio crash Pin
cjsc19-Mar-10 10:22
cjsc19-Mar-10 10:22 
GeneralRe: Applicatio crash Pin
hxhl9519-Mar-10 10:50
hxhl9519-Mar-10 10:50 
GeneralRe: Applicatio crash Pin
Tim Craig19-Mar-10 19:59
Tim Craig19-Mar-10 19:59 
GeneralRe: Applicatio crash Pin
Rajesh R Subramanian19-Mar-10 22:07
professionalRajesh R Subramanian19-Mar-10 22:07 
QuestionHow to change frame / window focus programatically - after using SetWindowPos Pin
Vaclav_19-Mar-10 8:16
Vaclav_19-Mar-10 8:16 
AnswerRe: How to change frame / window focus programatically - after using SetWindowPos Pin
Rozis21-Mar-10 2:09
Rozis21-Mar-10 2:09 
GeneralRe: How to change frame / window focus programatically - after using SetWindowPos Pin
Vaclav_21-Mar-10 2:19
Vaclav_21-Mar-10 2:19 
AnswerRe: How to change frame / window focus programatically - after using SetWindowPos Pin
Avi Berger22-Mar-10 5:10
Avi Berger22-Mar-10 5:10 
GeneralRe: How to change frame / window focus programatically - after using SetWindowPos Pin
Vaclav_22-Mar-10 5:55
Vaclav_22-Mar-10 5:55 
QuestionDealing with const CString ... [modified] (FIXED). Pin
Maximilien19-Mar-10 4:26
Maximilien19-Mar-10 4:26 
AnswerRe: Dealing with const CString ... Pin
Cedric Moonen19-Mar-10 4:36
Cedric Moonen19-Mar-10 4:36 
GeneralRe: Dealing with const CString ... Pin
Maximilien19-Mar-10 4:53
Maximilien19-Mar-10 4:53 
GeneralRe: Dealing with const CString ... Pin
Cedric Moonen19-Mar-10 5:17
Cedric Moonen19-Mar-10 5:17 
GeneralRe: Dealing with const CString ... Pin
Maximilien19-Mar-10 5:24
Maximilien19-Mar-10 5:24 
AnswerRe: Dealing with const CString ... PinPopular
Rajesh R Subramanian19-Mar-10 4:43
professionalRajesh R Subramanian19-Mar-10 4:43 
Just adding to the above reply...

You could use CString::GetBuffer() if you need access to the internal buffer of the CString object, but after you're done dealing with the buffer, you MUST call CString::ReleaseBuffer(). But by and large, if one of the casting operators would do the job, then you should avoid the call to GetBuffer() and go with the casting operator.

The documentation has more info on this.

“Follow your bliss.” – Joseph Campbell

GeneralRe: Dealing with const CString ... Pin
Maximilien19-Mar-10 4:54
Maximilien19-Mar-10 4:54 
GeneralRe: Dealing with const CString ... Pin
Rajesh R Subramanian19-Mar-10 5:10
professionalRajesh R Subramanian19-Mar-10 5:10 
GeneralRe: Dealing with const CString ... Pin
Cedric Moonen19-Mar-10 5:15
Cedric Moonen19-Mar-10 5:15 
GeneralRe: Dealing with const CString ... Pin
Rajesh R Subramanian19-Mar-10 5:16
professionalRajesh R Subramanian19-Mar-10 5:16 
GeneralRe: Dealing with const CString ... Pin
Joe Woodbury19-Mar-10 9:28
professionalJoe Woodbury19-Mar-10 9:28 

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.