Click here to Skip to main content
15,890,512 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
QuestionEditBox control Problem Pin
shiv@nand19-Mar-10 3:58
shiv@nand19-Mar-10 3:58 
AnswerRe: EditBox control Problem Pin
Adam Roderick J19-Mar-10 4:27
Adam Roderick J19-Mar-10 4:27 
AnswerRe: EditBox control Problem Pin
Le@rner20-Mar-10 1:38
Le@rner20-Mar-10 1:38 
QuestionList Control to Excel Pin
hellogany19-Mar-10 0:59
hellogany19-Mar-10 0:59 
AnswerRe: List Control to Excel Pin
CPallini19-Mar-10 1:20
mveCPallini19-Mar-10 1:20 
GeneralRe: List Control to Excel Pin
mesajflaviu19-Mar-10 1:59
mesajflaviu19-Mar-10 1:59 
AnswerRe: List Control to Excel Pin
Rajesh R Subramanian19-Mar-10 2:16
professionalRajesh R Subramanian19-Mar-10 2:16 
GeneralRe: List Control to Excel Pin
Adam Roderick J19-Mar-10 2:48
Adam Roderick J19-Mar-10 2:48 
GeneralRe: List Control to Excel Pin
mesajflaviu19-Mar-10 21:12
mesajflaviu19-Mar-10 21:12 
QuestionDialog Window Vertical Scroll Down problem Pin
shiv@nand19-Mar-10 0:42
shiv@nand19-Mar-10 0:42 
AnswerRe: Dialog Window Vertical Scroll Down problem Pin
Richard MacCutchan19-Mar-10 1:30
mveRichard MacCutchan19-Mar-10 1:30 
QuestionChanging registry root from HKELY_CURRENT_USER to HKEY_LOCAL_MACHINE Pin
maycockt19-Mar-10 0:37
maycockt19-Mar-10 0:37 

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.