Will there be any difference in the image buffer size if it
is loaded in from CString to LPTSTR using GetBuffer()?
lptstr = string.GetBuffer(0);

Answers were Sorted based on User's Feedback



Will there be any difference in the image buffer size if it is loaded in from CString to LPTSTR us..

Answer / prashant

No there wont be any difference. Infact the first method is
preffered

Is This Answer Correct ?    2 Yes 0 No

Will there be any difference in the image buffer size if it is loaded in from CString to LPTSTR us..

Answer / abn reddy

use like this,
int nLen = string.GetLenght();
lptstr = string.GetBuffer(nLen);

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More MFC Interview Questions

1) create ToolTip in MFC?

2 Answers   HCL,


What is the base class for MFC

3 Answers   HCL,


What are the special requirements for dialog box resources used in a form view?

2 Answers  


How you find memory leaks?

4 Answers   ABB,


What is a message map, and what is the advantage of a message map over virtual functions?

1 Answers  


What?s the difference between Modal and Modeless Dialog?

12 Answers   Jekson, Usl India,


If application hangs while SendMessage is waiting for the result, how you handle it?

2 Answers  


List out the parameters of WinMain Function.

2 Answers   Mphasis,


Can you explaing the relashionship between document,frame and view ?

2 Answers  


How to update windows title bar dynamically?

7 Answers   HCL,


what is the use of CCmdTarget?

4 Answers   Siemens,


How you create a button dynamically?

2 Answers  


Categories