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 Mutex and critical section

2 Answers  


1)How to change the size of a button at run time ?

1 Answers  


What MFC base classes provide support for ActiveX controls?

2 Answers   Wipro,


1) Enable or disable a Cancel button at run time?

1 Answers   HCL,


What is userdefine Messages in MFC?

1 Answers   HCL,






What is the difference between the Encapsulation and Abstraction

25 Answers   HCL, Invensys, TCS, Wipro,


Why Array Index starts from Zero

30 Answers   HCL,


WHAT IS DIFFERENT BETWEN RELEASE MODE & DEBUGGING MODE

4 Answers   Google, Microsoft, TCS,


What is the difference between the ASSERT and VERIFY macros?

4 Answers  


Whats is DDX & DDV in MFC?

1 Answers   HCL,


What function is used to disable a control at runtime?

7 Answers  


What is CALLBACK? How it work? what is the advantage of CALLBACK, please explain with an example

6 Answers  


Categories