Click here to Skip to main content
15,905,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How this is causing stack underflow Pin
Rajkumar R6-Jun-07 21:47
Rajkumar R6-Jun-07 21:47 
GeneralRe: How this is causing stack underflow [modified] Pin
LiYS6-Jun-07 22:15
LiYS6-Jun-07 22:15 
AnswerRe: How this is causing stack underflow Pin
Stephen Hewitt6-Jun-07 22:08
Stephen Hewitt6-Jun-07 22:08 
GeneralRe: How this is causing stack underflow Pin
LiYS6-Jun-07 22:19
LiYS6-Jun-07 22:19 
GeneralRe: How this is causing stack underflow Pin
David Crow7-Jun-07 4:33
David Crow7-Jun-07 4:33 
QuestionGetBuffer/ReleaseBuffer Pin
tom groezer6-Jun-07 20:37
tom groezer6-Jun-07 20:37 
AnswerRe: GetBuffer/ReleaseBuffer Pin
Cedric Moonen6-Jun-07 20:46
Cedric Moonen6-Jun-07 20:46 
AnswerRe: GetBuffer/ReleaseBuffer Pin
CPallini6-Jun-07 20:52
mveCPallini6-Jun-07 20:52 
The function pair exists because CString object deallocates/reallocates internally its buffer.

The argument supplied to GetBuffer is the minumum warranted buffer size NOT the stringh length.
GetBuffer is used whenever you want to perform operation directly with the CString buffer (usually you don't have to do it). The call to GetBuffer gives to you, at least, the requested memory size. On the other hand, you need to call ReleaseBuffer to tell the CString object you've finished with you buffer raw operations, i.e. CString object can freely (and transparently) internally reallocates memory as needed.

Hope that helps.

Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

Questionan acm problem: Firenet Pin
followait6-Jun-07 19:56
followait6-Jun-07 19:56 
AnswerRe: an acm problem: Firenet Pin
Peter Weyzen6-Jun-07 23:56
Peter Weyzen6-Jun-07 23:56 
QuestionLPVOID to CString Conversion Pin
Atul Kumar Bhatt6-Jun-07 19:39
Atul Kumar Bhatt6-Jun-07 19:39 
AnswerRe: LPVOID to CString Conversion Pin
Mark Salsbery6-Jun-07 20:16
Mark Salsbery6-Jun-07 20:16 
Question"Cannot add a new member" Pin
CodeMak6-Jun-07 19:38
CodeMak6-Jun-07 19:38 
QuestionRe: "Cannot add a new member" Pin
Hamid_RT6-Jun-07 21:00
Hamid_RT6-Jun-07 21:00 
AnswerRe: "Cannot add a new member" Pin
Akt_4_U6-Jun-07 22:45
Akt_4_U6-Jun-07 22:45 
AnswerRe: "Cannot add a new member" Pin
Akt_4_U6-Jun-07 22:46
Akt_4_U6-Jun-07 22:46 
GeneralRe: "Cannot add a new member" Pin
CodeMak7-Jun-07 17:31
CodeMak7-Jun-07 17:31 
GeneralRe: "Cannot add a new member" Pin
Hamid_RT7-Jun-07 21:41
Hamid_RT7-Jun-07 21:41 
QuestionHow to create a dynamic bitmap ? Pin
Ohad Cabiri6-Jun-07 19:29
Ohad Cabiri6-Jun-07 19:29 
AnswerRe: How to create a dynamic bitmap ? Pin
Hamid_RT6-Jun-07 20:58
Hamid_RT6-Jun-07 20:58 
AnswerRe: How to create a dynamic bitmap ? Pin
Akt_4_U6-Jun-07 22:53
Akt_4_U6-Jun-07 22:53 
QuestionRe: How to create a dynamic bitmap ? Pin
Mark Salsbery7-Jun-07 5:14
Mark Salsbery7-Jun-07 5:14 
AnswerRe: How to create a dynamic bitmap ? Pin
Ohad Cabiri10-Jun-07 1:46
Ohad Cabiri10-Jun-07 1:46 
QuestionHow to Identify System Lock/Unlock in MFC Pin
swamy Narasimha6-Jun-07 19:26
swamy Narasimha6-Jun-07 19:26 
AnswerRe: How to Identify System Lock/Unlock in MFC Pin
Rajkumar R6-Jun-07 20:07
Rajkumar R6-Jun-07 20:07 

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.