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

Have you ever used win32 APIs ?

4 Answers   Microsoft,


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

2 Answers   Mphasis,


How can update edit control data of an executing application from other application?

3 Answers   HP,


How you create a button dynamically?

2 Answers  


Which MFC function is used to display output?

9 Answers   TCS,






Tell us something about MFC?

7 Answers   Microsoft,


How can server communicate with more than one client

2 Answers   Invensys,


1)why we cant create more than one instance of the class Derived from CWinApp

5 Answers   Alstom,


What is the difference between the Encapsulation and Abstraction

25 Answers   HCL, Invensys, TCS, Wipro,


1)To Remove WS_MINIMIZEBOX in a Frame ?

1 Answers  


If i derive a new class from CObject what are the basic features my derived wil get ?

4 Answers   Microsoft,


What is a message map?

1 Answers   Mphasis,


Categories