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

what is the use of CWinApp class?

3 Answers   Mphasis,


How to find the mouse entering an image?..while entering need to display next image...

4 Answers  


I have 2 threads. One thread prints odd numbers and the second thread prints even numbers. Now, I have to execute the threads alternatively so that i can output 1,2,3,4,5,6,..... write code for this?

1 Answers  


How you create a button dynamically?

2 Answers  


What is model and modeless dialog box ? Give some examples?

2 Answers   Mphasis,






Explain StretchBlt and BitBlt

1 Answers  


What is the difference between hinsrtance and hprevinstance in WinMain function?

3 Answers  


What is thread & process?

15 Answers   Exaband,


What is the difference between the ASSERT and VERIFY macros?

4 Answers  


what do you mean by psychic window?

2 Answers   Patni,


How to setup a timer?

3 Answers   IBM,


1)How to load an icon on a button as Dynamically ?

1 Answers   HCL,


Categories