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 a message map?

1 Answers   Mphasis,


WHAT IS DIFFERENT BETWEN RELEASE MODE & DEBUGGING MODE

4 Answers   Google, Microsoft, TCS,


What is LPCTSTR? What does LP denote it?

4 Answers  


What is the range of intensity of RGB

1 Answers  


In VC++ How to transfer between one exe to another exe while running..

5 Answers   Wipro,






Which Macro is a Super set of other two macro DECLARE_SERIAL,DECLARE_DYNAMIC and DECLARE_DYNCREATE. ?

2 Answers   Sony,


What is the difference between the ASSERT and VERIFY macros?

4 Answers  


How to access document object from view ?

1 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 to update all the views whenver document got updated ?

1 Answers  


What are the differences between MFC Exception macros and C++ exception keywords?

2 Answers  


1) create ToolTip in MFC?

2 Answers   HCL,


Categories